oasislmf.cli.command¶
Classes¶
The base command to inherit from for each command. |
|
Eventually, the Parent class for all Oasis Computation Command |
Module Contents¶
- class oasislmf.cli.command.OasisBaseCommand(*args, **kwargs)[source]¶
Bases:
argparsetree.BaseCommand
The base command to inherit from for each command.
2 additional arguments (
--verbose
and--config
) are added to the parser so that they are available for all commands.- add_args(parser)[source]¶
Adds arguments to the argument parser. This is used to modify which arguments are processed by the command.
2 global parameters (
--verbose
and--config
) are added so that they are available to all commands.- Parameters:
parser (ArgumentParser) – The argument parser object
- class oasislmf.cli.command.OasisComputationCommand(*args, **kwargs)[source]¶
Bases:
OasisBaseCommand
Eventually, the Parent class for all Oasis Computation Command create the command line interface from parameter define in the associated computation step