Closed Bug 1192315 Opened 9 years ago Closed 9 years ago

Support remainder arguments from predefined parsers in mach.

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(firefox43 fixed)

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: jgraham, Assigned: jgraham)

Details

Attachments

(1 file)

Mach has special handling for remainder arguments which currently
    only worked with the decoration form. Extend this to also work when
    a command passes in an explicit parser
Bug 1192315 - Support remainder arguments from predefined parsers in mach, r?gps
Mach has special handling for remainder arguments which previously
only worked with the decoration form. Extend this to also work when
a command passes in an explict parser
Attachment #8645037 - Flags: review?(gps)
Comment on attachment 8645037 [details]
MozReview Request: Bug 1192315 - Support remainder arguments from predefined parsers in mach, r?gps

https://reviewboard.mozilla.org/r/15361/#review13811

::: python/mach/mach/dispatcher.py:190
(Diff revision 1)
> +                    subparser._actions.remove(arg)

This will cause issues if the parser instance is used elsewhere. I don't think this is worth worrying about, however.
Attachment #8645037 - Flags: review?(gps) → review+
url:        https://hg.mozilla.org/integration/mozilla-inbound/rev/8091ada4f6f36678c33a7c50e7935fa0fa342a6c
changeset:  8091ada4f6f36678c33a7c50e7935fa0fa342a6c
user:       James Graham <james@hoppipolla.co.uk>
date:       Fri Aug 07 18:13:05 2015 +0100
description:
Bug 1192315 - Support remainder arguments from predefined parsers in mach, r=gps

Mach has special handling for remainder arguments which previously
only worked with the decoration form. Extend this to also work when
a command passes in an explict parser
https://hg.mozilla.org/mozilla-central/rev/8091ada4f6f3
Assignee: nobody → james
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
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: