From: Steven Tobin Date: Sun, 6 Mar 2016 15:36:54 +0000 (+0000) Subject: remove underscore in command line arguments X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=77e22d1831128f1ebfdeeec60f4e786ed3af0d4a;p=redacted-XKCD-password-generator.git remove underscore in command line arguments --- diff --git a/README.rst b/README.rst index 6f4c239..0d0ec57 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/xkcdpass/xkcd_password.py b/xkcdpass/xkcd_password.py index d8437e6..c5b0a66 100755 --- a/xkcdpass/xkcd_password.py +++ b/xkcdpass/xkcd_password.py @@ -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"