duplicity.cli_main module

Main for parse command line, check for consistency, and set config

class duplicity.cli_main.DuplicityHelpFormatter(prog, indent_increment=2, max_help_position=24, width=None)[source]

Bases: ArgumentDefaultsHelpFormatter, RawDescriptionHelpFormatter

A working class to combine ArgumentDefaults, RawDescription. Use with make_wide() to insure we catch argparse API changes.

duplicity.cli_main.make_wide(formatter, w=120, h=46)[source]

Return a wider HelpFormatter, if possible. See: https://stackoverflow.com/a/5464440 Beware: “Only the name of this class is considered a public API.”

duplicity.cli_main.parse_cmdline_options(arglist)[source]

Parse argument list

duplicity.cli_main.process_command_line(cmdline_list)[source]

Process command line, set config