rsa: print help if not args given
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
a58f9b9337
commit
2ae7d09c25
5
rsa.py
Normal file → Executable file
5
rsa.py
Normal file → Executable file
@ -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 <keysize> <keyname>
|
||||
keyFileName = sys.argv[3]
|
||||
if keyExist(keyFileName):
|
||||
|
Loading…
Reference in New Issue
Block a user