From: Steven Tobin Date: Wed, 20 Jul 2016 12:01:51 +0000 (+0100) Subject: remove duplicate wordfile argument, tidy argparse strings X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3a5daecebbaf3683f59ca61e2858c9ca36603984;p=redacted-XKCD-password-generator.git remove duplicate wordfile argument, tidy argparse strings --- diff --git a/xkcdpass/xkcd_password.py b/xkcdpass/xkcd_password.py index d4cf645..2a29a26 100755 --- a/xkcdpass/xkcd_password.py +++ b/xkcdpass/xkcd_password.py @@ -308,16 +308,9 @@ class XkcdPassArgumentParser(argparse.ArgumentParser): "--allow-weak-rng", action="store_true", dest="allow_weak_rng", default=False, help=( - "Allow fallback to weak RNG, \ - if the system does not support cryptographically secure RNG. \ - Only use this if you know what you are doing.")) - - self.add_argument( - "wordfile", - default=None, metavar="WORDFILE", nargs="?", - help=( - "Specify that the file WORDFILE contains the list" - " of valid words from which to generate passphrases.")) + "Allow fallback to weak RNG if the " + "system does not support cryptographically secure RNG. " + "Only use this if you know what you are doing.")) def main(argv=None):