mirror of https://github.com/tLDP/python-tldp
make the action --options a mutually exclusive group
This commit is contained in:
parent
fa73f93080
commit
17a60e367a
|
@ -16,15 +16,20 @@ import tldp.typeguesser
|
|||
|
||||
def collectconfiguration(tag, argv):
|
||||
ap = DefaultFreeArgumentParser()
|
||||
ap.add_argument('--build',
|
||||
g = ap.add_mutually_exclusive_group()
|
||||
g.add_argument('--build',
|
||||
'-b',
|
||||
action='store_true', default=False,
|
||||
help='build LDP documentation [%(default)s]')
|
||||
ap.add_argument('--detail', '--list',
|
||||
g.add_argument('--script',
|
||||
'-S',
|
||||
action='store_true', default=False,
|
||||
help='dump runnable script [%(default)s]')
|
||||
g.add_argument('--detail', '--list',
|
||||
'-l',
|
||||
action='store_true', default=False,
|
||||
help='list elements of LDP system [%(default)s]')
|
||||
ap.add_argument('--status', '--summary',
|
||||
g.add_argument('--summary',
|
||||
'-t',
|
||||
action='store_true', default=False,
|
||||
help='dump inventory status report [%(default)s]')
|
||||
|
|
Loading…
Reference in New Issue