Compare commits
2 Commits
8b58de5a42
...
dbad0c8b15
Author | SHA1 | Date | |
---|---|---|---|
dbad0c8b15 | |||
227338ebf2 |
2
README
2
README
@ -25,7 +25,7 @@ $ sudo apt install xclip
|
||||
Usage
|
||||
=====
|
||||
|
||||
Usage: pwc [-h | --help] [-s | --special] [-p | --print] [<lenght>]
|
||||
Usage: pwc [-h|--help] [-s|--special] [-p|--print] [<lenght>]
|
||||
|
||||
-s, --special use punctuation characters in password.
|
||||
-p, --print print password to STDOUT instead of copy to clipboard.
|
||||
|
4
pwc.py
4
pwc.py
@ -35,10 +35,10 @@ def generate_pass(special_chars: bool, lenght: int, print_pass: bool) -> str:
|
||||
process.stdin.write(pw.encode()) # Put password to STDIN.
|
||||
|
||||
def usage():
|
||||
print('Usage: pwc [-h | --help] [-s | --special] [-p | --print] [<lenght>]')
|
||||
print('Usage: pwc [-h|--help] [-s|--special] [-p|--print] [<lenght>]')
|
||||
|
||||
def print_help():
|
||||
print('Generate password and copy it to clipboard.')
|
||||
print('Generate password and copy it to clipboard (xclip).')
|
||||
print()
|
||||
usage()
|
||||
print()
|
||||
|
Loading…
Reference in New Issue
Block a user