diff options
author | Alan Bennett <alan.bennett@linaro.org> | 2015-05-15 15:52:18 -0600 |
---|---|---|
committer | Alan Bennett <alan.bennett@linaro.org> | 2015-05-15 15:52:18 -0600 |
commit | 2fdc2e7b20c81f56d45de232325863b498d6d198 (patch) | |
tree | 368a696c6f27e4c4e57f7e7cfc592d14dfdb9c2b | |
parent | 2aff6aece3aa86cafef29621eb683080cda48d4a (diff) |
Change option to list "only epics" or if only_epics is not set, list -non-epics
-rwxr-xr-x | monthly-report.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/monthly-report.py b/monthly-report.py index e1b4581..c812ae2 100755 --- a/monthly-report.py +++ b/monthly-report.py @@ -88,8 +88,8 @@ def setup_args_parser(): parser.add_argument("-d", "--debug", action="store_true") parser.add_argument("-c", "--component", required=True, help="Jira Component") parser.add_argument("-s", "--stale", action="store_true", help="List Cards not updated in > 14 days") - parser.add_argument("--only_epics", action="store_true", help="List only epics") - parser.add_argument("--only_cards", action="store_false", help="List only cards *Default*") + parser.add_argument("--only_epics", action="store_true", help="List only epics, default is only cards") + return parser.parse_args() @@ -137,8 +137,7 @@ def constructquery(args): basequery = ' project = card AND component = ' + args.component if args.only_epics: basequery += ' AND summary ~ epic' - - if args.only_cards: + else: basequery += ' AND summary !~ epic' if args.stale is True: |