remove duplicate wordfile argument, tidy argparse strings
authorSteven Tobin <redacted>
Wed, 20 Jul 2016 12:01:51 +0000 (13:01 +0100)
committerSteven Tobin <redacted>
Wed, 20 Jul 2016 12:01:51 +0000 (13:01 +0100)
xkcdpass/xkcd_password.py

index d4cf645f0ec8af6c00b905d4912e37d5bf86cffc..2a29a26b1fdeae14f86998e21e707f3e29d792e2 100755 (executable)
@@ -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):
git clone https://git.99rst.org/PROJECT