Skip to content

Commit

Permalink
add missing argument definitions in db.QueryArgumentParser
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam committed Mar 31, 2023
1 parent 48c0697 commit 535819f
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions kcidb/db/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def __init__(self, driver_types, *args, **kwargs):
assert all(isinstance(key, str) for key in driver_types.keys())
assert all(isinstance(value, type) for value in driver_types.values())
self.driver_types = driver_types
super().__init__(driver_types=driver_types, *args, **kwargs)
super().__init__(self.driver_types, *args, **kwargs)

self.add_argument(
'-c', '--checkout-id',
Expand All @@ -203,7 +203,22 @@ def __init__(self, driver_types, *args, **kwargs):
dest="test_ids",
action='append',
)

self.add_argument(
'-i', '--issue-id',
metavar="ID",
default=[],
help='ID of an issue to match',
dest="issue_ids",
action='append',
)
self.add_argument(
'-n', '--incident-id',
metavar="ID",
default=[],
help='ID of an incident to match',
dest="incident_ids",
action='append',
)
self.add_argument(
'--parents',
help='Match parents of matching objects',
Expand Down

0 comments on commit 535819f

Please sign in to comment.