python: Elide default for store_{true,false} argparse arguments.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-09-02 11:45:48 -07:00
committed by Alex Vandiver
parent d9431a5e66
commit b4597a8ca8
46 changed files with 45 additions and 85 deletions

View File

@@ -21,11 +21,11 @@ DJANGO_PO_REGEX = re.compile('msgid "(.*?)"')
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--show-ignored',
action='store_true', default=False,
action='store_true',
help='Show strings that passed the check because they '
'contained ignored phrases.')
parser.add_argument('--no-generate',
action='store_true', default=False,
action='store_true',
help="Don't run makemessages command.")
args = parser.parse_args()