From f8452d8cfd4711aa9a988254dcd9421d7538710b Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 11 Nov 2010 17:29:05 +0000 Subject: 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. --- tools/lvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/lvm.c') 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); -- cgit