Updated README with new args.
This commit is contained in:
parent
2d1b4b4b24
commit
cab2e3d306
12
README.md
12
README.md
@ -1,10 +1,16 @@
|
||||
# passphrase
|
||||
A simple bash script that generates random dictionary-derived passwords for me. It takes a single parameter, which is the number of phrase groups to output.
|
||||
A simple bash script that generates random dictionary-derived passwords for me. It takes two arguments:
|
||||
|
||||
**-c** <*number*>
|
||||
Provides this many groups of five passphrases.
|
||||
|
||||
**-s**
|
||||
Include spaces between all words.
|
||||
|
||||
Here's an example. Feel free to mix and match and use these as passwords. They would be good passwords. I'm not using any of them. I swear.
|
||||
|
||||
```
|
||||
$ passphrase 5
|
||||
```shell
|
||||
$ passphrase -c 5 -s
|
||||
|
||||
tree eardrum format
|
||||
yachts guerilla sheepdog
|
||||
|
@ -15,13 +15,13 @@ while [[ $# > 0 ]]; do # iterate through arguments, one or two steps at a time
|
||||
key="$1" # argument key
|
||||
|
||||
case $key in
|
||||
-s|--space) # we want spaces b/w words
|
||||
-s) # we want spaces b/w words
|
||||
SPACE=1
|
||||
# since this option takes no value argument, we only want
|
||||
# to shift ahead one argument
|
||||
;;
|
||||
|
||||
-c|--count) # we want a certain number of groups
|
||||
-c) # we want a certain number of groups
|
||||
COUNT="$2"
|
||||
# and since this does have a value, skip the value itself on
|
||||
# the next scan... we know it's not an argument key
|
||||
|
Loading…
Reference in New Issue
Block a user