Commit df62e5db authored by Iustin Pop's avatar Iustin Pop

Move the “--src-…” options to cli.py

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 05586c90
......@@ -83,6 +83,8 @@ __all__ = [
"SEP_OPT",
"SHOWCMD_OPT",
"SINGLE_NODE_OPT",
"SRC_DIR_OPT",
"SRC_NODE_OPT",
"SUBMIT_OPT",
"STATIC_OPT",
"SYNC_OPT",
......@@ -667,6 +669,13 @@ IGNORE_SIZE_OPT = cli_option("--ignore-size", dest="ignore_size",
" (useful for forcing activation when"
" the recorded size is wrong)")
SRC_NODE_OPT = cli_option("--src-node", dest="src_node", help="Source node",
metavar="<node>",
completion_suggest=OPT_COMPL_ONE_NODE)
SRC_DIR_OPT = cli_option("--src-dir", dest="src_dir", help="Source directory",
metavar="<dir>")
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
......
......@@ -219,11 +219,8 @@ import_opts = [
NET_OPT,
NONICS_OPT,
NWSYNC_OPT,
cli_option("--src-node", dest="src_node", help="Source node",
metavar="<node>",
completion_suggest=OPT_COMPL_ONE_NODE),
cli_option("--src-dir", dest="src_dir", help="Source directory",
metavar="<dir>"),
SRC_DIR_OPT,
SRC_NODE_OPT,
NOIPCHECK_OPT,
IALLOCATOR_OPT,
FILESTORE_DIR_OPT,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment