Revision e7e09483

b/lib/cli.py
44 44

  
45 45
__all__ = [
46 46
  # Command line options
47
  "ALLOCATABLE_OPT",
47 48
  "ALL_OPT",
48 49
  "AUTO_REPLACE_OPT",
49 50
  "BACKEND_OPT",
......
710 711
                         choices=_YESNO, default=None,
711 712
                         help="Set the drained flag on the node")
712 713

  
714
ALLOCATABLE_OPT = cli_option("--allocatable", dest="allocatable",
715
                             choices=_YESNO, default=None, metavar=_YORNO,
716
                             help="Set the allocatable flag on a volume")
717

  
713 718

  
714 719
def _ParseArgs(argv, commands, aliases):
715 720
  """Parser for the command line arguments.
b/scripts/gnt-node
676 676
                     ArgChoice(min=1, max=1,
677 677
                               choices=_MODIFIABLE_STORAGE_TYPES),
678 678
                     ArgFile(min=1, max=1)],
679
                    [DEBUG_OPT,
680
                     cli_option("--allocatable", dest="allocatable",
681
                                choices=["yes", "no"], default=None,
682
                                metavar="yes|no",
683
                                help="Set the allocatable flag on a volume"),
684
                     ],
679
                    [DEBUG_OPT, ALLOCATABLE_OPT],
685 680
                    "<node_name> <storage_type> <name>",
686 681
                    "Modify storage volume on a node"),
687 682
  'repair-volume': (RepairVolume,

Also available in: Unified diff