summaryrefslogtreecommitdiff
path: root/tools/lvmcmdline.c
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2013-05-14 18:45:37 +0100
committerAlasdair G Kergon <agk@redhat.com>2013-05-14 18:45:37 +0100
commitc6cf2ed7fd29d1860df511ac897367af646a6fb3 (patch)
treece80d2c1453a29f3106535323cb8631b7cf961c4 /tools/lvmcmdline.c
parent8ad7865b421459553a05e220f992ba2d26bd60e6 (diff)
downloadlvm2-c6cf2ed7fd29d1860df511ac897367af646a6fb3.tar.gz
commands: accept --yes globally
Accept --yes on all commands, even ones that don't today have prompts, so that test scripts that don't care about interactive prompts no longer need to deal with them. But continue to mention --yes only in the command prototypes that actually use it.
Diffstat (limited to 'tools/lvmcmdline.c')
-rw-r--r--tools/lvmcmdline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index c03e9ef3b..0b64ed839 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -615,6 +615,7 @@ void lvm_register_commands(void)
driverloaded_ARG, \
debug_ARG, help_ARG, help2_ARG, \
version_ARG, verbose_ARG, \
+ yes_ARG, \
quiet_ARG, config_ARG, -1);
#include "commands.h"
#undef xx