Revision fdcf4d84

b/lib/cli.py
72 72
  "OS_OPT",
73 73
  "OS_SIZE_OPT",
74 74
  "SEP_OPT",
75
  "SHOWCMD_OPT",
75 76
  "SINGLE_NODE_OPT",
76 77
  "SUBMIT_OPT",
77 78
  "SYNC_OPT",
......
597 598
                         action="store_false",
598 599
                         help="Don't start the instance after creation")
599 600

  
601
SHOWCMD_OPT = cli_option("--show-cmd", dest="show_command",
602
                         action="store_true", default=False,
603
                         help="Show command instead of executing it")
604

  
600 605

  
601 606
def _ParseArgs(argv, commands, aliases):
602 607
  """Parser for the command line arguments.
b/scripts/gnt-instance
1385 1385
                   "<instances_file.json>",
1386 1386
                   "Create a bunch of instances based on specs in the file."),
1387 1387
  'console': (ConnectToInstanceConsole, ARGS_ONE_INSTANCE,
1388
              [DEBUG_OPT,
1389
               cli_option("--show-cmd", dest="show_command",
1390
                          action="store_true", default=False,
1391
                          help=("Show command instead of executing it"))],
1388
              [DEBUG_OPT, SHOWCMD_OPT],
1392 1389
              "[--show-cmd] <instance>",
1393 1390
              "Opens a console on the specified instance"),
1394 1391
  'failover': (FailoverInstance, ARGS_ONE_INSTANCE,

Also available in: Unified diff