From 30962b8cb2028dedb5dd405bd4045811c3559044 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 1 Mar 2023 21:46:25 -0500 Subject: [PATCH] Fixed a regression causing server arguments to be unusable Former-commit-id: 89be58bc3a1ce059a4fbbe69a5a36498808f5f04 Former-commit-id: bc6d77c6b4c848905acf155d11a49283025941ff --- lib/sshyp.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index e7b7830..f9acd67 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -838,8 +838,11 @@ if __name__ == "__main__": success_flag = True read_shortcut() - elif arg_count == 0: # server arguments - if arg_count > 1 and arguments[0] == 'whitelist': + else: # server arguments + if arg_count < 1: + arguments.append('help') + print_info() + elif arg_count > 1 and arguments[0] == 'whitelist': if arguments[1] in ('list', '-l'): success_flag = True whitelist_list()