From 2ae7d09c25d76bb505233ef9a710a17c113b1b54 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Fri, 19 Jan 2024 16:15:18 +0300 Subject: [PATCH] rsa: print help if not args given Signed-off-by: HeshamTB --- rsa.py | 5 +++++ 1 file changed, 5 insertions(+) mode change 100644 => 100755 rsa.py diff --git a/rsa.py b/rsa.py old mode 100644 new mode 100755 index 8cc7895..d82341e --- a/rsa.py +++ b/rsa.py @@ -31,6 +31,11 @@ ID = 6 def main(): print("hesham-rsa version ", VERSION) + + if len(sys.argv) == 1: + printHelp() + sys.exit(127) + if sys.argv[1] == "gen" and len(sys.argv) == 4: ##rsa gen keyFileName = sys.argv[3] if keyExist(keyFileName):