Closed Bug 881582 Opened 11 years ago Closed 11 years ago

"mach help" throws an error

Categories

(Firefox Build System :: Mach Core, enhancement)

x86
macOS
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 879406

People

(Reporter: Dolske, Unassigned)

References

Details

Attachments

(1 file)

Running "mach help run" throws an error. (This is a 2 day old m-c tree, 855a29c9dd68.) $ mach help run Error running mach: ['help', 'run'] The error occurred in mach itself. This is likely a bug in mach itself or a fundamental problem with a loaded module. Please consider filing a bug against mach by going to the URL: https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=mach If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: ValueError: invalid option string u'+remote': must start with a character '-' File "/Users/dolske/build/mozilla-central/python/mach/mach/main.py", line 231, in run return self._run(argv) File "/Users/dolske/build/mozilla-central/python/mach/mach/main.py", line 269, in _run args = parser.parse_args(argv) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1688, in parse_args args, argv = self.parse_known_args(args, namespace) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1720, in parse_known_args namespace, args = self._parse_known_args(args, namespace) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1929, in _parse_known_args stop_index = consume_positionals(start_index) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1885, in consume_positionals take_action(action, args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1794, in take_action action(self, namespace, argument_values, option_string) File "/Users/dolske/build/mozilla-central/python/mach/mach/dispatcher.py", line 93, in __call__ self._handle_subcommand_help(parser, args[0]) File "/Users/dolske/build/mozilla-central/python/mach/mach/dispatcher.py", line 186, in _handle_subcommand_help group.add_argument(*arg[0], **arg[1]) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1267, in add_argument kwargs = self._get_optional_kwargs(*args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1397, in _get_optional_kwargs raise ValueError(msg % tup)
Attached patch WIP (deleted) — Splinter Review
I took a stab at this. It doesn't work, but I don't know enough python to figure out why...
Dupe of bug 879406?
Less jet-lagged brain says this is definitely a dupe.
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.

Attachment

General

Created:
Updated:
Size: