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

Output wordlists dir in help.

parent e6a83a61
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,10 @@ def handle_options(args):
"""Handle commandline options.
"""
random_sources = get_random_sources().keys()
parser = argparse.ArgumentParser(description="Create a passphrase")
parser = argparse.ArgumentParser(
description="Create a passphrase",
epilog="Wordlists are stored in %s" % WORDLISTS_DIR
)
parser.add_argument(
'-n', '--num', default=6, type=int,
help='number of words to concatenate. Default: 6')
......
......@@ -20,3 +20,6 @@ optional arguments:
Get randomness from this source. Possible values:
`realdice', `system'. Default: system
--version output version information and exit.
Wordlists are stored in
<PATH-TO-WORDLISTS-DIR>
......@@ -304,6 +304,7 @@ class TestDicewareModule(object):
os.path.dirname(__file__), 'exp_help_output.txt')
with open(expected_path, 'r') as fd:
expected_output = fd.read()
out = out.replace(WORDLISTS_DIR, "<PATH-TO-WORDLISTS-DIR>")
assert out == expected_output
def test_main_version(self, argv_handler, capsys):
......
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