Fixed regression: Visually broken help screens after running TABS.sh

Former-commit-id: 9243dda684024070c5b937416e44b5001000a376
Former-commit-id: 5dc1ee9b1f9e8c019161eb6a972346ceebd13ac2
This commit is contained in:
2023-04-24 15:10:16 -04:00
parent 9027aee323
commit 6c2a2313fb
+55 -55
View File
@@ -360,36 +360,36 @@ def print_info():
elif arguments[0] == 'add' and device_type == 'client':
print('\n\u001b[1musage:\u001b[0m sshyp </entry name> add <flag>\u001b[0m\n')
print('\u001b[1mflags:\u001b[0m')
print('add:')
print(' password/-p add a password entry')
print(' note/-n add a note entry')
print(' folder/-f add a new folder for entries\n')
print(' add:')
print(' password/-p\t\tadd a password entry')
print(' note/-n\t\tadd a note entry')
print(' folder/-f\t\tadd a new folder for entries\n')
elif arguments[0] == 'edit' and device_type == 'client':
print('\n\u001b[1musage:\u001b[0m sshyp </entry name> edit <flag>\u001b[0m\n')
print('\u001b[1mflags:\u001b[0m')
print('edit:')
print(' rename/relocate/-r rename or relocate an entry')
print(' username/-u change the username of an entry')
print(' password/-p change the password of an entry')
print(' url/-l change the url attached to an entry')
print(' note/-n change the note attached to an entry\n')
print(' edit:')
print(' rename/relocate/-r\trename or relocate an entry')
print(' username/-u\t\tchange the username of an entry')
print(' password/-p\t\tchange the password of an entry')
print(' url/-l\t\tchange the url attached to an entry')
print(' note/-n\t\tchange the note attached to an entry\n')
elif arguments[0] == 'copy' and device_type == 'client':
print('\n\u001b[1musage:\u001b[0m sshyp </entry name> copy <flag>\u001b[0m\n')
print('\u001b[1mflags:\u001b[0m')
print('copy:')
print(' username/-u copy the username of an entry to your clipboard')
print(' password/-p copy the password of an entry to your clipboard')
print(' url/-l copy the url of an entry to your clipboard')
print(' note/-n copy the note of an entry to your clipboard\n')
print(' copy:')
print(' username/-u\t\tcopy the username of an entry to your clipboard')
print(' password/-p\t\tcopy the password of an entry to your clipboard')
print(' url/-l\t\tcopy the url of an entry to your clipboard')
print(' note/-n\t\tcopy the note of an entry to your clipboard\n')
elif arguments[0] == 'whitelist':
if device_type == 'server':
print('\n\u001b[1musage:\u001b[0m sshyp whitelist <flag> [device id]\u001b[0m\n')
print('\u001b[1mflags:\u001b[0m')
print('whitelist:')
print(' setup set up the quick-unlock whitelist')
print(' list/-l view all registered device ids and their quick-unlock whitelist status')
print(' add whitelist a device id for quick-unlock')
print(' delete/del remove a device id from the quick-unlock whitelist\n')
print(' whitelist:')
print(' setup\t\t\tset up the quick-unlock whitelist')
print(' list/-l\t\tview all registered device ids and their quick-unlock whitelist status')
print(' add\t\t\twhitelist a device id for quick-unlock')
print(' del\t\t\tremove a device id from the quick-unlock whitelist\n')
else:
print('\n\u001b[38;5;9merror: argument (whitelist) only available on server\u001b[0m\n')
else:
@@ -399,49 +399,49 @@ def print_info():
if device_type == 'client':
print('\n\u001b[1musage:\u001b[0m sshyp [</entry name> [option] [flag]] [option]\n')
print('\u001b[1moptions:\u001b[0m')
print('help/-h bring up this menu')
print('version/-v display sshyp version info')
print('tweak configure sshyp')
print('add add an entry')
print('gen generate a new password')
print('edit edit an existing entry')
print('copy copy details of an entry to your clipboard')
print('shear delete an existing entry')
print('sync manually sync the entry directory via sshync')
print(' help/-h\t\tbring up this menu')
print(' version/-v\t\tdisplay sshyp version info')
print(' tweak\t\t\tconfigure sshyp')
print(' add\t\t\tadd an entry')
print(' gen\t\t\tgenerate a new password')
print(' edit\t\t\tedit an existing entry')
print(' copy\t\t\tcopy details of an entry to your clipboard')
print(' shear\t\t\tdelete an existing entry')
print(' sync\t\t\tmanually sync the entry directory via sshync')
print('\n\u001b[1mflags:\u001b[0m')
print('add:')
print(' password/-p add a password entry')
print(' note/-n add a note entry')
print(' folder/-f add a new folder for entries')
print('edit:')
print(' rename/relocate/-r rename or relocate an entry')
print(' username/-u change the username of an entry')
print(' password/-p change the password of an entry')
print(' url/-l change the url attached to an entry')
print(' note/-n change the note attached to an entry')
print('copy:')
print(' username/-u copy the username of an entry to your clipboard')
print(' password/-p copy the password of an entry to your clipboard')
print(' url/-l copy the url of an entry to your clipboard')
print(' note/-n copy the note of an entry to your clipboard')
print('gen:')
print(' update/-u generate a password for an existing entry')
print(' add:')
print(' password/-p\t\tadd a password entry')
print(' note/-n\t\tadd a note entry')
print(' folder/-f\t\tadd a new folder for entries')
print(' edit:')
print(' rename/relocate/-r\trename or relocate an entry')
print(' username/-u\t\tchange the username of an entry')
print(' password/-p\t\tchange the password of an entry')
print(' url/-l\t\tchange the url attached to an entry')
print(' note/-n\t\tchange the note attached to an entry')
print(' copy:')
print(' username/-u\t\tcopy the username of an entry to your clipboard')
print(' password/-p\t\tcopy the password of an entry to your clipboard')
print(' url/-l\t\tcopy the url of an entry to your clipboard')
print(' note/-n\t\tcopy the note of an entry to your clipboard')
print(' gen:')
print(' update/-u\t\tgenerate a password for an existing entry')
print("\n\u001b[1mtip 1:\u001b[0m you can quickly read an entry with 'sshyp </entry name>'")
print("\u001b[1mtip 2:\u001b[0m type 'sshyp' to view a list of saved entries\n")
# PORT START HELP-SERVER
else:
print('\n\u001b[1musage:\u001b[0m sshyp <option> [flag] [<device id>]\n')
print('\u001b[1moptions:\u001b[0m')
print('help/-h bring up this menu')
print('version/-v display sshyp version info')
print('tweak configure sshyp')
print('whitelist manage the quick-unlock whitelist')
print(' help/-h\t\tbring up this menu')
print(' version/-v\t\tdisplay sshyp version info')
print(' tweak\t\t\tconfigure sshyp')
print(' whitelist\t\tmanage the quick-unlock whitelist')
print('\n\u001b[1mflags:\u001b[0m')
print('whitelist:')
print(' setup set up the quick-unlock whitelist')
print(' list/-l view all registered device ids and their quick-unlock whitelist status')
print(' add whitelist a device id for quick-unlock')
print(' del remove a device id from the quick-unlock whitelist\n')
print(' whitelist:')
print(' setup\t\t\tset up the quick-unlock whitelist')
print(' list/-l\t\tview all registered device ids and their quick-unlock whitelist status')
print(' add\t\t\twhitelist a device id for quick-unlock')
print(' del\t\t\tremove a device id from the quick-unlock whitelist\n')
# PORT END HELP-SERVER