Author porton
Recipients Christophe.Guillon, Clint Olsen, abacabadabacaba, amcnabb, andersk, bethard, cben, danielsh, davidben, drm, eric.araujo, eric.smith, evaned, fennec15, gdb, gfxmonk, karzes, martin.panter, memeplex, nelhage, paul.j3, porton, r.david.murray, rhettinger, skilletaudio, spaceone, xtreak
Date 2018-12-13.01:41:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544665310.2.0.788709270274.issue9334@psf.upfronthosting.co.za>
In-reply-to
Content
Subparsers are added like:

subparsers.add_parser('checkout', aliases=['co'])

But I want to use a parser BOTH as a subparser and as a full-fledged parser.

It is because my program should understand both of the following command line options:

boiler chain -t http://www.w3.org/1999/xhtml -W inverseofsum

and

boiler pipe 'chain -t http://www.w3.org/1999/xhtml -W inverseofsum + transformation http://example.com/ns1'.

I split it (at +) into several lists of arguments as explained in https://stackoverflow.com/a/53750697/856090

So I need `chain` both as a subparser and as a standalone parser of `-t http://www.w3.org/1999/xhtml -W inverseofsum`.

So, feature which I want:

subparsers.add_parser('checkout', aliases=['co'], parser=...)

where ... is a reference to a parser object.
History
Date User Action Args
2018-12-13 01:41:50portonsetrecipients: + porton, rhettinger, cben, amcnabb, bethard, eric.smith, eric.araujo, r.david.murray, memeplex, gfxmonk, evaned, andersk, abacabadabacaba, gdb, nelhage, drm, davidben, martin.panter, paul.j3, skilletaudio, Christophe.Guillon, danielsh, spaceone, Clint Olsen, karzes, xtreak, fennec15
2018-12-13 01:41:50portonsetmessageid: <1544665310.2.0.788709270274.issue9334@psf.upfronthosting.co.za>
2018-12-13 01:41:50portonlinkissue9334 messages
2018-12-13 01:41:48portoncreate