Version 1.0.1:

1. Adjusts for spelling mistakes in commands
2. Readjusted help query based on importance
master
TitanE 10 months ago
parent ab3886db5b
commit c64b923f0d

@ -189,25 +189,39 @@ print("\nkeyvault initialized.")
print("keyvault is ready to use! Type 'help' for a list of commands.\n") print("keyvault is ready to use! Type 'help' for a list of commands.\n")
while True: while True:
command = input("> ").lower() command = input("> ")[0].lower()
if command == 'help': if command == 'h':
print("\nUsage:\n\nadd - add an entry\nls - list entires\nrm - remove entry\ngen - generate a password or username\nstrength - check password strength\nedit - edit an entry\nfind/search - open search wizard\nhelp - display this message\nversion - print current version\n") print("""
elif command == 'search' or command == 'find': Usage:
add - add an entry
ls - list entires
edit - edit an entry
find/search - open search wizard
rm - remove entry
gen - generate a password or username
strength - check password strength
help - display this message
version - print current version
quit - quit the program
""")
elif command == 's' or command == 'f':
find() find()
elif command == 'ls': elif command == 'l':
ls() ls()
elif command == 'add': elif command == 'a':
add() add()
elif command == 'rm': elif command == 'r':
rm() rm()
elif command == 'edit': elif command == 'e':
edit() edit()
elif command == 'version': elif command == 'v':
print("keyvault: v1.0.0") print("keyvault: v1.0.1")
elif command == 'gen': elif command == 'g':
gen() gen()
elif command == 'strength': elif command == 's':
strength() strength()
elif command == 'exit': elif command == 'q':
print("Thank for you using keyvault!") print("Thank for you using keyvault!")
exit() exit()

Loading…
Cancel
Save