curldl.cli module#
Command-line interface, should be called via main module: python -m curldl
- class curldl.cli.CommandLine[source]#
Bases:
object
Command-line interface, exposed via module entry point
Initialize argument parser and unhandled exception hook
- static _configure_logger(args: Namespace) None [source]#
Configure logger according to command-line arguments. Specifying verbose argument raises the log level to debug.
- Parameters:
args (Namespace) – command-line arguments
- classmethod _parse_arguments() Namespace [source]#
Parse command-line arguments.
- Returns:
arguments after configuring the logger and possibly inferring other arguments
- Return type:
- classmethod _infer_arguments(output_arg: Action, args: Namespace) Namespace [source]#
Infer missing arguments.
- Parameters:
- Returns:
input arguments after inferring missing ones
- Raises:
argparse.ArgumentError – multiple URLs are specified with
output
argument- Return type: