Closed Bug 861067 Opened 11 years ago Closed 11 years ago

Switch |mach run| and |mach debug| to use argparse.REMAINDER

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 856392

People

(Reporter: gps, Unassigned)

Details

(Whiteboard: [mach])

mach run and debug both consume all the remaining command arguments and proxy them to the invocation of the binary. Currently, we're using prefix_chars so mach doesn't intercept arguments destined for the binary. I just discovered argparse has a argparse.REMAINDER value which can be used for nargs. It has similar behavior and is less hacky.
I dug myself into my own hole. I have to do this out of necessity for bug 856392.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.