add invalid directive fail

This commit is contained in:
glmdev 2018-11-30 17:06:24 -06:00
parent 4af68c3d9a
commit 836d00f69a

View File

@ -261,6 +261,10 @@ elif ( active and len(sys.argv) > argiter+1 and sys.argv[argiter+1] == 'r' ):
print("echo Restored directory: "+restorepath) print("echo Restored directory: "+restorepath)
exit() exit()
elif ( active and len(sys.argv) > argiter+1 ):
print("echo Invalid directive: "+sys.argv[argiter+1])
exit()
# File Operations # File Operations
if ( (not active and len(sys.argv) == 1) or (active and len(sys.argv) == 2) ): if ( (not active and len(sys.argv) == 1) or (active and len(sys.argv) == 2) ):
# list the contents of the current directory # list the contents of the current directory