Sat, 27 Feb 2021 12:08:23 +0100

Detlev Offenbach <>
Sat, 27 Feb 2021 12:08:23 +0100
changeset 8138
parent 7923

Shell: added functionality to show a prompt when the main client process has exited (e.g. a script ended).

# -*- coding: utf-8 -*-

# Copyright (c) 2012 - 2021 Detlev Offenbach <>

Module implementing a function to generate an application info.

from UI.Info import Version

def makeAppInfo(argv, name, arg, description, options=None):
    Module function to generate a dictionary describing the application.
    @param argv list of commandline parameters (list of strings)
    @param name name of the application (string)
    @param arg commandline arguments (string)
    @param description text describing the application (string)
    @param options list of additional commandline options
        (list of tuples of two strings (commandline option,
        option description)). The options --version, --help and -h are
        always present and must not be repeated in this list.
    @return dictionary describing the application
    return {
        "bin": argv[0],
        "arg": arg,
        "name": name,
        "description": description,
        "version": Version,
        "options": [] if options is None else options[:]

eric ide