radloggerpy.cli.argument_helper module
- class radloggerpy.cli.argument_helper.ArgumentHelper[source]
Bases:
objectSimplifies the adding of arguments when using argparse
Implement this abstract class to simplify adding of argparse arguments. Add elements to the
argumentsdictionary were the key is the desired argument name and the value is anradloggerpy.cli.argument.Argumentinstance.To register the arguments defined in
argumentscall theregister_arguments()function passing the desired argparse ArgumentParser instance.The expected structure of
argumentscould look as follows:{ ‘name’ : Argument(), ‘–interface’ : Argument(‘-i’, required=True) }
When the extend of certain Argument parameters is not known at compile time these parameters can be added using
radloggerpy.cli.argument.Argument.add_kwarg()- _abc_impl = <_abc._abc_data object>
- abstract property arguments: dict
Dictionary property that must be implemented to contain arguments