summaryrefslogtreecommitdiffstats
path: root/test/AS/AS.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/AS/AS.py')
-rw-r--r--test/AS/AS.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/AS/AS.py b/test/AS/AS.py
index 38ea655..e0ffbf4 100644
--- a/test/AS/AS.py
+++ b/test/AS/AS.py
@@ -47,7 +47,11 @@ import sys
args = sys.argv[1:]
while args:
a = args[0]
- if a[0] != '/':
+ if a == '-o':
+ out = args[1]
+ args = args[2:]
+ continue
+ if not a[0] in '/-':
break
args = args[1:]
if a[:5].lower() == '/out:': out = a[5:]
@@ -65,15 +69,16 @@ args = sys.argv[1:]
inf = None
while args:
a = args[0]
+ if a == '-o':
+ out = args[1]
+ args = args[2:]
+ continue
args = args[1:]
if not a[0] in "/-":
if not inf:
inf = a
continue
if a[:3] == '/Fo': out = a[3:]
- if a == '-o':
- out = args[0]
- args = args[1:]
infile = open(inf, 'rb')
outfile = open(out, 'wb')
for l in infile.readlines():