Revision df62e5db

b/lib/cli.py
83 83
  "SEP_OPT",
84 84
  "SHOWCMD_OPT",
85 85
  "SINGLE_NODE_OPT",
86
  "SRC_DIR_OPT",
87
  "SRC_NODE_OPT",
86 88
  "SUBMIT_OPT",
87 89
  "STATIC_OPT",
88 90
  "SYNC_OPT",
......
667 669
                             " (useful for forcing activation when"
668 670
                             " the recorded size is wrong)")
669 671

  
672
SRC_NODE_OPT = cli_option("--src-node", dest="src_node", help="Source node",
673
                          metavar="<node>",
674
                          completion_suggest=OPT_COMPL_ONE_NODE)
675

  
676
SRC_DIR_OPT = cli_option("--src-dir", dest="src_dir", help="Source directory",
677
                         metavar="<dir>")
678

  
670 679

  
671 680
def _ParseArgs(argv, commands, aliases):
672 681
  """Parser for the command line arguments.
b/scripts/gnt-backup
219 219
  NET_OPT,
220 220
  NONICS_OPT,
221 221
  NWSYNC_OPT,
222
  cli_option("--src-node", dest="src_node", help="Source node",
223
             metavar="<node>",
224
             completion_suggest=OPT_COMPL_ONE_NODE),
225
  cli_option("--src-dir", dest="src_dir", help="Source directory",
226
             metavar="<dir>"),
222
  SRC_DIR_OPT,
223
  SRC_NODE_OPT,
227 224
  NOIPCHECK_OPT,
228 225
  IALLOCATOR_OPT,
229 226
  FILESTORE_DIR_OPT,

Also available in: Unified diff