Skip to content
Snippets Groups Projects
Commit 442587bf authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

cli: Add option to force names to be treated as filter


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent b107fe05
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment