Skip to content
Snippets Groups Projects
Commit cb67cd98 authored by ulif's avatar ulif
Browse files

Add delimiter option -d.

parent 8ca8d67e
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,9 @@ def handle_options(args):
parser.add_argument(
'-s', '--specials', default=0, type=int, metavar='NUM',
help="Insert NUM special chars into generated word.")
parser.add_argument(
'-d', '--delimiter', default='',
help="Separate words by DELIMITER. Empty string by default.")
parser.add_argument(
'infile', nargs='?', metavar='INFILE', default=None,
type=argparse.FileType('r'),
......
usage: diceware [-h] [-n NUM] [-c | --no-caps] [-s NUM] [--version] [INFILE]
usage: diceware [-h] [-n NUM] [-c | --no-caps] [-s NUM] [-d DELIMITER]
[--version]
[INFILE]
Create a passphrase
......@@ -12,4 +14,6 @@ optional arguments:
--no-caps Turn off capitalization.
-s NUM, --specials NUM
Insert NUM special chars into generated word.
-d DELIMITER, --delimiter DELIMITER
Separate words by DELIMITER. Empty string by default.
--version output version information and exit.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment