From 1d969cc1f1009496162329c2ca06cda4b0b10d6e Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Tue, 21 Feb 2023 16:23:59 -0500 Subject: [PATCH] Removed redundant server help list trigger Former-commit-id: c4e3b5d8f264d59b655e9c557e17c2948df443db [formerly addb022772d0791cb63402b15ae6e498c12a5139] Former-commit-id: b47a2cd8dc98eb8e11fdce194ac83ca9e1c3d61f --- lib/sshyp.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 67d6e9b..4231425 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -822,12 +822,6 @@ if __name__ == "__main__": ssh_error = False else: ssh_error = True - elif arguments[0] != "help" and arguments[0] != "--help" and arguments[0] != "-h" and arguments[0] \ - != "license" and arguments[0] != "version" and arguments[0] != "-v" and arguments[0] \ - != "whitelist": - print(f"\n\u001b[38;5;9merror: invalid server argument - run 'sshyp help' to " - f"list usable commands\u001b[0m\n") - s_exit(1) except (FileNotFoundError, IndexError): print('\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!') print("not all necessary configuration files are present - please run 'sshyp tweak'")