remove underscore in command line arguments
authorSteven Tobin <steventtobin (at) gmail.com>
Sun, 6 Mar 2016 15:36:54 +0000 (15:36 +0000)
committerSteven Tobin <steventtobin (at) gmail.com>
Sun, 6 Mar 2016 15:36:54 +0000 (15:36 +0000)
README.rst
xkcdpass/xkcd_password.py

index 6f4c239dc7f529fb8f6de96e301f97e1867d62df..0d0ec57ee02eed3e34f397072710459c9bfbb9a7 100644 (file)
@@ -65,7 +65,7 @@ which returns
 * ``--acrostic='chaos'``   the first letters of which spell 'chaos'
 * ``--delimiter='|'``   joined using '|'
 * ``--min=5 --max=6``  with words between 5 and 6 characters long
-* ``--valid_chars='[a-z]'``   using only lower-case letters (via regex).
+* ``--valid-chars='[a-z]'``   using only lower-case letters (via regex).
 
 
 A concise overview of the available ``xkcdpass`` options can be accessed via::
@@ -87,7 +87,7 @@ A concise overview of the available ``xkcdpass`` options can be accessed via::
                                     Number of words to make password
         -i, --interactive
                                     Interactively select a password
-        -v VALID_CHARS, --valid_chars=VALID_CHARS
+        -v VALID_CHARS, --valid-chars=VALID_CHARS
                                     Valid chars, using regexp style (e.g. '[a-z]')
         -V, --verbose
                                     Report various metrics for given options, including word list entropy
index d8437e644bb1bd8ba63f3d9903ca37697b582877..c5b0a6601726b52bd33b301fc607829f6f019e75 100755 (executable)
@@ -290,7 +290,7 @@ class XkcdPassArgumentParser(argparse.ArgumentParser):
                 "Generate and output a passphrase, query the user to accept it,"
                 " and loop until one is accepted."))
         self.add_argument(
-            "-v", "--valid_chars",
+            "-v", "--valid-chars",
             dest="valid_chars", default=".", metavar="VALID_CHARS",
             help=(
                 "Limit passphrases to only include words matching the regex"
git clone https://git.99rst.org/PROJECT