Revision 1f587d3d
b/lib/cli.py | ||
---|---|---|
103 | 103 |
"USEUNITS_OPT", |
104 | 104 |
"VERBOSE_OPT", |
105 | 105 |
"VG_NAME_OPT", |
106 |
"YES_DOIT_OPT", |
|
106 | 107 |
# Generic functions for CLI programs |
107 | 108 |
"GenericMain", |
108 | 109 |
"GetClient", |
... | ... | |
743 | 744 |
" name (cluster-wide) for disk allocation [xenvg]", |
744 | 745 |
metavar="VG", default=None) |
745 | 746 |
|
747 |
YES_DOIT_OPT = cli_option("--yes-do-it", dest="yes_do_it", |
|
748 |
help="Destroy cluster", action="store_true") |
|
746 | 749 |
|
747 | 750 |
|
748 | 751 |
def _ParseArgs(argv, commands, aliases): |
b/scripts/gnt-cluster | ||
---|---|---|
627 | 627 |
"[opts...] <cluster_name>", |
628 | 628 |
"Initialises a new cluster configuration"), |
629 | 629 |
'destroy': (DestroyCluster, ARGS_NONE, |
630 |
[DEBUG_OPT, |
|
631 |
cli_option("--yes-do-it", dest="yes_do_it", |
|
632 |
help="Destroy cluster", |
|
633 |
action="store_true"), |
|
634 |
], |
|
630 |
[DEBUG_OPT, YES_DOIT_OPT], |
|
635 | 631 |
"", "Destroy cluster"), |
636 | 632 |
'rename': (RenameCluster, [ArgHost(min=1, max=1)], |
637 | 633 |
[DEBUG_OPT, FORCE_OPT], |
Also available in: Unified diff