hop.cli

hop.cli.add_client_opts(parser)[source]

Add general client options to an argument parser.

Parameters

parser – An ArgumentParser instance to add client options to.

hop.cli.add_logging_opts(parser)[source]

Add logging client options to an argument parser.

Parameters

parser – An ArgumentParser instance to add client options to.

hop.cli.get_log_level(args)[source]

Determine the log level from logging options.

Parameters

args – The parsed argparse arguments.

Returns

the logging log level.

hop.cli.set_up_logger(args)[source]

Set up common logging settings for CLI usage.

Parameters

args – The parsed argparse arguments.