From b45c648b3a23dd3c39924d24a057782f2d01e25a Mon Sep 17 00:00:00 2001 From: CM Lubinski Date: Thu, 23 Apr 2015 02:28:55 +0000 Subject: [PATCH] fixed a flag --- notice_order.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/notice_order.py b/notice_order.py index a4dc2f0..770bc76 100644 --- a/notice_order.py +++ b/notice_order.py @@ -16,8 +16,10 @@ parser = argparse.ArgumentParser(description="Notice Orderer") parser.add_argument('cfr_title', help='CFR_TITLE') parser.add_argument('cfr_part', help='CFR_PART') - parser.add_argument('--include-notices-without-changes', type=bool, - default=False) + parser.add_argument('--include-notices-without-changes', const=True, + default=False, action='store_const', + help=('Include notices which do not change the ' + 'regulation (default: false)')) args = parser.parse_args() notices_by_date = notices_for_cfr_part(args.cfr_title, args.cfr_part)