Re: mailgw argument parsing
Ralf Schlatterbeck <[email protected]> Tue, 22 Nov 2022 14:44:12 +0100
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Thomas, thanks for the feedback! On Tue, Nov 22, 2022 at 01:58:56PM +0100, Thomas Arendsen Hein wrote: > > What do you think? > > Your suggestion looks good, much more intuitive, and since old calls > will show an error, this should not cause silent misbehavior. > > And I really like argparse :) :-) Yes, me too. > In a personal project I have extended argparse to accept multiple > parameters per option: Hmm, looks like overkill for this small script, especially since roundup already has a mechanism for combining options with ';'. So something like this is already allowed: -S issue.issueprop1=value1;issueprop2=value2 Note the missing class on the second property (and you cannot combine different classes in a single -S option). So I guess adding an additional syntax there would only confuse people. Ralf -- Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16 Open Source Consulting www: www.runtux.com Reichergasse 131, A-3411 Weidling email: [email protected]