Skip to content

Commit

Permalink
Host: Combine arguments for -parse
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 1, 2012
1 parent 9957538 commit 63c35fc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doomsday/host/doomsday-host
Expand Up @@ -198,6 +198,19 @@ class State:
args += sv.options + commonOptions
args += ['-out', os.path.join(sv.runtime, time.strftime('doomsday-%Y%m%d-%H%M%S.out'))]

# Join the -parse arguments.
i = args.index('-parse')
j = i+2
while j < len(args):
if args[j] == '-parse':
# Move the arg.
del args[j]
opt = args[j]
del args[j]
args.insert(i+1, opt)
continue
j += 1

try:
msg('Start options: ' + string.join(args, ' '))
po = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Expand Down

0 comments on commit 63c35fc

Please sign in to comment.