From c5dd735f7a0f0997de03b4aaecbf569b3fe0325b Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Tue, 21 Feb 2023 16:20:53 -0500 Subject: [PATCH] Removed "-rm" and "-s" arguments Former-commit-id: 101783c23034a85ad4d9af5e3527125b61fe9ee8 [formerly b925a7bdb1ea6255362aa883dee6af758330af56] Former-commit-id: 317109e8a0755ac530be776c2d9c3969a907ec2b --- lib/sshyp.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 8610f2c..67d6e9b 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -414,18 +414,18 @@ def print_info(): # prints help text based on argument print('\n\u001b[1msshyp copyright (c) 2021-2023 randall winkhart\u001b[0m\n') print("this is free software, and you are welcome to redistribute it under certain conditions;\nthis program " "comes with absolutely no warranty;\ntype 'sshyp license' for details") - if device_type == 'client': # TODO update for re-order (also man page), remove -rm + if device_type == 'client': # TODO update for re-order (also man page) print('\n\u001b[1musage:\u001b[0m sshyp [option [flag] []] | [/]\n') print('\u001b[1moptions:\u001b[0m') - print('help/-h bring up this menu') + 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/-rm delete an existing entry') - print('sync/-s manually sync the entry directory via sshync') + print('shear delete an existing entry') + print('sync manually sync the entry directory via sshync') print('\n\u001b[1mflags:\u001b[0m') print('add:') print(' password/-p add a password entry') @@ -448,7 +448,7 @@ def print_info(): # prints help text based on argument else: print('\n\u001b[1musage:\u001b[0m sshyp [option [flag] []]\n') print('\u001b[1moptions:\u001b[0m') - print('help/--help/-h bring up this menu') + 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') @@ -871,7 +871,7 @@ if __name__ == "__main__": elif arguments[arg_start] == 'gen': success_flag, sync_flag = True, True gen() - elif arguments[arg_start] == 'shear' or arguments[arg_start] == '-rm': + elif arguments[arg_start] == 'shear': success_flag, sync_flag = True, True remove_data() elif device_type == 'server' and arguments[arg_start] == 'whitelist': @@ -893,7 +893,7 @@ if __name__ == "__main__": elif arguments[0] == 'gen': success_flag, sync_flag = True, True gen() - elif arguments[0] == 'shear' or arguments[0] == '-rm': + elif arguments[0] == 'shear': success_flag, sync_flag = True, True remove_data()