]> www.infradead.org Git - users/dhowells/kafs-utils.git/commit
Limit a multivalued param that is followed by another required param
authorDavid Howells <dhowells@redhat.com>
Wed, 13 Aug 2014 12:57:50 +0000 (13:57 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 13 Aug 2014 12:57:50 +0000 (13:57 +0100)
commitf98ffaf7bcd8c993a6f5555aea6bf834949ca33c
treecb5dd79886e434620dca5be41c6196e34af18918
parenta6e8b23ce1f37228043da3efca3a86a4ed54432c
Limit a multivalued param that is followed by another required param

A multivalued parameter that is followed by another required parameter is
limited to a single value unless prefaced with its switch, eg:

pts adduser A B C D

B, C and D are group names and A is a user name, despite the user name field
taking multiple values.  In contrast in:

pts adduser -user A B -group C D

A and B are users and only C and D are groups.

Signed-off-by: David Howells <dhowells@redhat.com>
suite/argparse.py