diff --git a/lib/cli.py b/lib/cli.py index 50bb1580e7c8de423d6240d8c74b45ac42d11651..d6a74e5e42e479ef1ea88463933a4b961e49f508 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -77,6 +77,7 @@ __all__ = [ "FIELDS_OPT", "FILESTORE_DIR_OPT", "FILESTORE_DRIVER_OPT", + "FORCE_FILTER_OPT", "FORCE_OPT", "FORCE_VARIANT_OPT", "GLOBAL_FILEDIR_OPT", @@ -1181,6 +1182,11 @@ POWER_DELAY_OPT = cli_option("--power-delay", dest="power_delay", type="float", default=constants.OOB_POWER_DELAY, help="Time in seconds to wait between power-ons") +FORCE_FILTER_OPT = cli_option("-F", "--filter", dest="force_filter", + action="store_true", default=False, + help=("Whether command argument should be treated" + " as filter")) + #: Options provided by all commands COMMON_OPTS = [DEBUG_OPT]