Compare commits

..

No commits in common. "dbad0c8b15d0b749519b95e78d867226a1f1ce84" and "8b58de5a42830274507115294321be5426efb3aa" have entirely different histories.

2 changed files with 3 additions and 3 deletions

2
README
View File

@ -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
View File

@ -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 (xclip).')
print('Generate password and copy it to clipboard.')
print()
usage()
print()