From fbf5ac02a46dc0bdcfb1b0bed3467daca396a660 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 1 Mar 2023 21:32:35 -0500 Subject: [PATCH] Fixed the read shortcut showing the help menu Former-commit-id: 52a2e39bf3449cdaa82ef6c4f224e8f78c103528 Former-commit-id: c7a99441eaca0b3306b4b11e3ae61053a002ef02 --- lib/sshyp.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 8e90951..e7b7830 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -827,16 +827,17 @@ if __name__ == "__main__": gen() elif arg_count == 2 and arg_start == 1: - if arg_count == 1: - success_flag = True - read_shortcut() - elif arguments[1] == 'gen': + if arguments[1] == 'gen': success_flag, sync_flag = True, True gen() elif arguments[1] == 'shear': success_flag, sync_flag = True, True remove_data() + elif arg_count == 1 and arg_start == 1: + success_flag = True + read_shortcut() + elif arg_count == 0: # server arguments if arg_count > 1 and arguments[0] == 'whitelist': if arguments[1] in ('list', '-l'):