geotribu_cli.cli module¶
Main CLI entrypoint.
- geotribu_cli.cli.add_common_arguments(parser_to_update)¶
Apply common argument to an existing parser.
- Paramètres:
parser_to_update (argparse.ArgumentParser) – parser to which arguments need to be added
- Renvoie:
parser with added options
- Type renvoyé:
- geotribu_cli.cli.main(args=None)¶
Main CLI entrypoint.
- geotribu_cli.cli.set_default_subparser(parser_to_update, default_subparser_name, args=None)¶
- Set a default subparser to a parent parser. Call after setup and just before
parse_args(). See: <https://stackoverflow.com/questions/5176691/argparse-how-to-specify-a-default-subcommand>
- Paramètres:
parser_to_update (argparse.ArgumentParser) – parent parser to add
default_subparser_name (str) – name of the subparser to call by default
args (list, optional) – if set is the argument list handed to parse_args(). Defaults to None.