Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
diceware-debian
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drebs
diceware-debian
Commits
b0c83fa7
Commit
b0c83fa7
authored
8 years ago
by
ulif
Browse files
Options
Downloads
Patches
Plain Diff
Add `--verbose` option for commandline.
parent
03dea16e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
diceware/__init__.py
+3
-0
3 additions, 0 deletions
diceware/__init__.py
tests/exp_help_output.txt
+2
-1
2 additions, 1 deletion
tests/exp_help_output.txt
with
5 additions
and
1 deletion
diceware/__init__.py
+
3
−
0
View file @
b0c83fa7
...
...
@@ -120,6 +120,9 @@ def handle_options(args):
type
=
argparse
.
FileType
(
'
r
'
),
help
=
"
Input wordlist. `-
'
will read from stdin.
"
,
)
parser
.
add_argument
(
'
-v
'
,
'
--verbose
'
,
action
=
'
count
'
,
help
=
'
Be verbose. Use several times for increased verbosity.
'
)
parser
.
add_argument
(
'
--version
'
,
action
=
'
store_true
'
,
help
=
'
output version information and exit.
'
,
...
...
This diff is collapsed.
Click to expand it.
tests/exp_help_output.txt
+
2
−
1
View file @
b0c83fa7
usage: diceware [-h] [-n NUM] [-c | --no-caps] [-s NUM] [-d DELIMITER]
[-r SOURCE] [-w NAME] [--version]
[-r SOURCE] [-w NAME]
[-v]
[--version]
[INFILE]
Create a passphrase
...
...
@@ -23,6 +23,7 @@ optional arguments:
Use words from this wordlist. Possible values: `en',
`en_orig', `en_securedrop'. Wordlists are stored in
the folder displayed below. Default: en_securedrop
-v, --verbose Be verbose. Use several times for increased verbosity.
--version output version information and exit.
Wordlists are stored in <WORDLISTS-DIR>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment