Command line parsing
Russel Winder via Digitalmars-d
digitalmars-d at puremagic.com
Sat May 14 00:44:55 PDT 2016
On Sat, 2016-05-14 at 07:34 +0300, Andrei Alexandrescu via Digitalmars-
d wrote:
> […]
> What are those and how are they better? -- Andrei
C: argp, GNOME CLP
C++ Clara, gtkmm CLP
Python: argparse
Groovy: Commons CLI wrapper
…
the list is quite lengthy.
A table of data declaring all the things. No messing round with control
flow during the parse. Automated message construction. Use of
properties and data structure for all the results.
Basically an increased level of abstraction. Imperative → Declarative.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160514/e9eeca67/attachment.sig>
More information about the Digitalmars-d
mailing list