We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd5a9f0 commit 447202eCopy full SHA for 447202e
2 files changed
bugzilla.1
@@ -213,7 +213,7 @@ Get a list of products
213
List the components in the given product
214
.IP "--component_owners=PRODUCT, -o PRODUCT"
215
List components (and their owners)
216
-.IP "--versions=VERSION, -v VERSION"
+.IP "--versions=PRODUCT, -v PRODUCT"
217
List the versions for the given product
218
219
bugzilla/_cli.py
@@ -346,13 +346,14 @@ def _setup_action_info_parser(subparsers):
346
"bugzilla server.")
347
p = subparsers.add_parser("info", description=description)
348
349
- p.add_argument('-p', '--products', action='store_true',
+ x = p.add_mutually_exclusive_group()
350
+ x.add_argument('-p', '--products', action='store_true',
351
help='Get a list of products')
- p.add_argument('-c', '--components', metavar="PRODUCT",
352
+ x.add_argument('-c', '--components', metavar="PRODUCT",
353
help='List the components in the given product')
- p.add_argument('-o', '--component_owners', metavar="PRODUCT",
354
+ x.add_argument('-o', '--component_owners', metavar="PRODUCT",
355
help='List components (and their owners)')
- p.add_argument('-v', '--versions', metavar="VERSION",
356
+ x.add_argument('-v', '--versions', metavar="PRODUCT",
357
help='List the versions for the given product')
358
359
0 commit comments