- [NOHDR_OPT, SEP_OPT, FIELDS_OPT, SYNC_OPT, ROMAN_OPT],
- "[<group_name>...]", "Lists the node groups in the cluster."),
+ [NOHDR_OPT, SEP_OPT, FIELDS_OPT, VERBOSE_OPT],
+ "[<group_name>...]",
+ "Lists the node groups in the cluster. The available fields can be shown"
+ " using the \"list-fields\" command (see the man page for details)."
+ " The default list is (in order): %s." % utils.CommaJoin(_LIST_DEF_FIELDS)),
+ "list-fields": (
+ ListGroupFields, [ArgUnknown()], [NOHDR_OPT, SEP_OPT], "[fields...]",
+ "Lists all available fields for node groups"),
+ "modify": (
+ SetGroupParams, ARGS_ONE_GROUP,
+ [DRY_RUN_OPT, SUBMIT_OPT, ALLOC_POLICY_OPT, NODE_PARAMS_OPT],
+ "<group_name>", "Alters the parameters of a node group"),
+ "remove": (
+ RemoveGroup, ARGS_ONE_GROUP, [DRY_RUN_OPT],
+ "[--dry-run] <group-name>",
+ "Remove an (empty) node group from the cluster"),
+ "rename": (
+ RenameGroup, [ArgGroup(min=2, max=2)], [DRY_RUN_OPT],
+ "[--dry-run] <group-name> <new-name>", "Rename a node group"),