coalispr.resources.cmd_parser¶
Attributes¶
Functions¶
Inclusde test command for profiling functions |
|
Fot each command give details to construct argument parsers and gui |
|
|
Assemble the parser for coalispr CLI. |
Module Contents¶
- coalispr.resources.cmd_parser.prog = ''¶
- coalispr.resources.cmd_parser.include_test()¶
Inclusde test command for profiling functions
- coalispr.resources.cmd_parser.get_descriptions()¶
Fot each command give details to construct argument parsers and gui interfaces. Note that values can be an <object> (like for ‘formatter’, ‘type’, ‘comms’), not only strings or lists of ints:
name = { 'name': , 'description': , 'usage': , 'help': , 'formatter': , 'comm': , 'required':[ {'label': ("dest", "arg", "state"), # for gui 'input': {['main', 'type']: ['combobox','str']: preset, #'entry2': [preset1, connector, preset2], ['combobox', 'type'] : [choices if len(choices >=2)], ['checkbutton', 'type']: [choices if choices == [0,1]; Yes/No; True/False], }, 'arg': , 'type': , 'choices': , 'dest': , 'default': , 'help': }, ] 'optional': [ {'label': ("dest", "arg", "state"), # for gui 'input': {['main', 'type']: , ['combobox','str']: preset, #'entry2': [preset1, connector, preset2], ['combobox', 'type'] : [choices if len(choices >=2)], ['checkbutton', 'type']: [choices if choices == [0,1]; Yes/No; True/False], }, 'arg': , 'type': , 'choices': , 'dest': , 'default': , 'help': }, ] }
- coalispr.resources.cmd_parser.make_parser(comms, version)¶
Assemble the parser for coalispr CLI.
- Parameters:
comms (dict) – Dictionary of commands.
version (str) – The
__version__string from calling module.