LMIShellOptions¶
- class lmi.shell.LMIShellOptions.LMIShellOptionParser(prog=None, usage=None, description=None, epilog=None, version=None, parents=, []formatter_class=<class 'argparse.HelpFormatter'>, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True)[source]¶
Helper class for CLI option parsing.
- class lmi.shell.LMIShellOptions.LMIShellOptions(argv)[source]¶
Class representing a LMIShell command line options. In the constructor, all command line options before a script name are passed to the LMIShell. First position argument belongs to the script and the rest of command line options is passed to the script run under the LMIShell.
Parameters: argv (list) – CLI arguments - interact[source]¶
Returns: flag, which indicates, if the LMIShell should enter an interactive mode, after executing a provided script. The behavior is similar to python interpreter Return type: bool
- interactive[source]¶
Returns: flag, which tells if the LMIShell should be initially run in the interactive mode Return type: bool
- log[source]¶
Returns: log level Return type: int Log level can be one of the following:
- _LOG_DEFAULT
- _LOG_VERBOSE
- _LOG_MORE_VERBOSE
- _LOG_QUIET