Compare commits

..

2 Commits

Author SHA1 Message Date
ge
dbad0c8b15 feat: Update README 2022-02-06 17:04:31 +03:00
ge
227338ebf2 feat: Update help text 2022-02-06 17:03:01 +03:00
2 changed files with 3 additions and 3 deletions

2
README
View File

@ -25,7 +25,7 @@ $ sudo apt install xclip
Usage 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. -s, --special use punctuation characters in password.
-p, --print print password to STDOUT instead of copy to clipboard. -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. process.stdin.write(pw.encode()) # Put password to STDIN.
def usage(): 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(): def print_help():
print('Generate password and copy it to clipboard.') print('Generate password and copy it to clipboard (xclip).')
print() print()
usage() usage()
print() print()