From 598852753a82c7abfb2ab8fd5e9d175dd1a93c22 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Mon, 12 Nov 2007 03:36:06 +0000 Subject: [PATCH] Change --nodes to --node The --nodes option in gnt-backup really accepts only one node at a time. Change it to --node, for added clarity and consistency with a similar option in gnt-cluster. This patch also updates the relevant man page. Reviewed-By: iustinp --- man/gnt-backup.sgml | 7 +++---- scripts/gnt-backup | 5 +++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/man/gnt-backup.sgml b/man/gnt-backup.sgml index bfae02c84..25f367388 100644 --- a/man/gnt-backup.sgml +++ b/man/gnt-backup.sgml @@ -220,15 +220,14 @@ <cmdsynopsis> <command>list</command> - <arg>--nodes=<replaceable>NODE-LIST</replaceable></arg> + <arg>--node=<replaceable>NODE</replaceable></arg> </cmdsynopsis> <para> Lists the exports currently available in the default directory in all the nodes of the current cluster, or optionally only a - subset of them specified by the <option>--nodes</option> - option (use this option multiple times to select multiple - nodes). + subset of them specified using the <option>--node</option> + option (which can be used multiple times) </para> <para> diff --git a/scripts/gnt-backup b/scripts/gnt-backup index 6f4555cf5..3e77d7cd3 100755 --- a/scripts/gnt-backup +++ b/scripts/gnt-backup @@ -137,8 +137,9 @@ import_opts = [ commands = { 'list': (PrintExportList, ARGS_NONE, [DEBUG_OPT, - make_option("--nodes", dest="nodes", default=[], action="append", - help="List only backups stored on these nodes"), + make_option("--node", dest="node", default=[], action="append", + help="List only backups stored on this node" + " (can be used multiple times)"), ], "", "Lists instance exports available in the ganeti cluster"), 'export': (ExportInstance, ARGS_ONE, -- GitLab