mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
417a2977b3
The reason to use '+' prefixing was to distinguish between options to the mach command itself, and options that are passed down to whatever the command does (like mach run passing down args to the built application). That makes things unnecessarily awkward, and quite non-standard. Instead, use standard '-' prefixing, and pass all the unknown arguments down. If there is overlap between the known arguments and arguments supported by the underlying tool (like -remote when using mach run), it is possible to use '--' to mark all following arguments as being targetted at the underlying tool. For instance: mach run -- -remote something would run firefox -remote something while mach run -remote something would run firefox something As allow_all_arguments is redundant with the presence of a argparse.REMAINDER CommandArgument, allow_all_arguments is removed. The only mach command with a argparse.REMAINDER CommandArgument without allow_all_arguments was "mach dmd", and it did so because it didn't want to use '+' prefixes. |
||
---|---|---|
.. | ||
docs | ||
footprint | ||
httptester | ||
jprof | ||
memory | ||
mercurial | ||
page-loader | ||
performance | ||
profiler | ||
quitter | ||
rb | ||
reorder | ||
test-harness/jssh-driver | ||
tests | ||
trace-malloc | ||
update-packaging | ||
uuiddeps | ||
mach_commands.py |