msl.package_manager.cli_argparse module

Custom argument parsers.

class msl.package_manager.cli_argparse.ArgumentParser(*args, **kwargs)[source]

Bases: ArgumentParser

A custom argument parser.

get_command_name()[source]

str: Returns the name of the command, e.g., install, list, …

contains_package_names(quiet=False)[source]

Check whether package names were specified or the --all flag was used.

Changed in version 2.5.0: Added the quiet keyword argument.

Parameters:

quiet (bool) – Whether to suppress the error message from being shown.

Returns:

bool – Whether package names were specified or the --all flag was used.

msl.package_manager.cli_argparse.add_argument_all(parser)[source]

Add an --all argument to the parser.

msl.package_manager.cli_argparse.add_argument_branch(parser)[source]

Add a --branch argument to the parser.

msl.package_manager.cli_argparse.add_argument_package_names(parser)[source]

Add a --names argument to the parser.

msl.package_manager.cli_argparse.add_argument_quiet(parser)[source]

Add a --quiet argument to the parser.

msl.package_manager.cli_argparse.add_argument_tag(parser)[source]

Add a --tag argument to the parser.

msl.package_manager.cli_argparse.add_argument_update_cache(parser)[source]

Add an --update-cache argument to the parser.

msl.package_manager.cli_argparse.add_argument_yes(parser)[source]

Add a --yes argument to the parser.

msl.package_manager.cli_argparse.add_argument_disable_mslpm_version_check(parser)[source]

Add a --disable-mslpm-version-check argument to the parser.

msl.package_manager.cli_argparse.add_argument_commit(parser)[source]

Add a --commit argument to the parser.