summaryrefslogtreecommitdiffstats
path: root/tools/lvm.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2010-11-11 17:29:05 +0000
committerAlasdair Kergon <agk@redhat.com>2010-11-11 17:29:05 +0000
commitf8452d8cfd4711aa9a988254dcd9421d7538710b (patch)
tree74f7ccc3b9a37bf795370af3ce3b0e24a80f186d /tools/lvm.c
parent64dff85ce47bd431422022e9afe1a29ead2dc385 (diff)
downloadlvm2-f8452d8cfd4711aa9a988254dcd9421d7538710b.tar.gz
lvm2-f8452d8cfd4711aa9a988254dcd9421d7538710b.tar.xz
lvm2-f8452d8cfd4711aa9a988254dcd9421d7538710b.zip
Support repetition of --addtag and --deltag arguments.
Add infrastructure for specific cmdline arguments to be repeated in groups. Split the_args cmdline arguments and values into arg_props and arg_values.
Diffstat (limited to 'tools/lvm.c')
-rw-r--r--tools/lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lvm.c b/tools/lvm.c
index 9cac23e1..cec9f806 100644
--- a/tools/lvm.c
+++ b/tools/lvm.c
@@ -95,7 +95,7 @@ static char *_list_args(const char *text, int state)
while (match_no < com->num_args) {
char s[3];
char c;
- if (!(c = (_cmdline->the_args +
+ if (!(c = (_cmdline->arg_props +
com->valid_args[match_no++])->short_arg))
continue;
@@ -111,7 +111,7 @@ static char *_list_args(const char *text, int state)
while (match_no - com->num_args < com->num_args) {
const char *l;
- l = (_cmdline->the_args +
+ l = (_cmdline->arg_props +
com->valid_args[match_no++ - com->num_args])->long_arg;
if (*(l + 2) && !strncmp(text, l, len))
return strdup(l);