add invalid directive fail
This commit is contained in:
parent
4af68c3d9a
commit
836d00f69a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user