If action is tidy then don't bother hecking if TO_DIR is valid.
This commit is contained in:
parent
df153565d4
commit
58ea1d15f3
@ -179,6 +179,10 @@ if __name__ == "__main__":
|
|||||||
print usage()
|
print usage()
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
|
if ACTION == 'tidy':
|
||||||
|
tidy(FROM_DIR)
|
||||||
|
else:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
TO_DIR = sys.argv[3]
|
TO_DIR = sys.argv[3]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
@ -192,8 +196,6 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
if ACTION == 'link':
|
if ACTION == 'link':
|
||||||
link(FROM_DIR,TO_DIR)
|
link(FROM_DIR,TO_DIR)
|
||||||
elif ACTION == 'tidy':
|
|
||||||
tidy(FROM_DIR)
|
|
||||||
elif ACTION == 'report':
|
elif ACTION == 'report':
|
||||||
link(FROM_DIR,TO_DIR,report=True)
|
link(FROM_DIR,TO_DIR,report=True)
|
||||||
tidy(FROM_DIR,report=True)
|
tidy(FROM_DIR,report=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user