Phobos /
Posix Get Opt
Difference (last edit) (Author, normal page display)
Changed: 3c3
2007-10-16: DMD 2.006 includes std.getopt by Andrei Alexandrescu. |
2007-10-16: DMD 2.006 includes std.getopt by Andrei Alexandrescu. |
Changed: 31c31
* NG:digitalmars.D/46527: optparse.d from <n>PyD?</n> |
* NG:digitalmars.D/46527: optparse.d from <n>PyD?</n> |
Changed: 33c33
* optparse.d by derick_eddington |
* optparse.d by derick_eddington (see also threaded view) |
POSIX getopt parameter parsing
2007-10-16: DMD 2.006 includes std.getopt by Andrei Alexandrescu.
Earlier Project
Author/Contact: Juanjo Álvarez Martínez MAIL juanjux (AT) yahoo.es
Project Page: None.
Download URL: ( getopt.d)
Mailing list: None.
Summary:
Pure D implementation of the POSIX getopt function for program parameter parsing (the standard and the lib allow the --parameter=argument --parameter argument -p arg and -parg otherargs forms). Although a POSIX standard, nothing prevents it from being used in other platforms (it doesn't have any platform dependent code). The implementation is heavily based on the Python getopt module.
Status: Done and sent to Walter. A Gnu style gnugetopt() function would be nice to have.
In need of help?: Not (almost finished project).
Other People Comments:
Related Links
This turns out to be such a popular idea for an addition to Phobos that several other people have written modules with the same goal.
Similar modules:
- NG:digitalmars.D/46527: optparse.d from PyD
- OptParse by Daniel Keep
- optparse.d by derick_eddington (see also threaded view)
- ArgParser.d from DDL
- command_line_parser.d from Doost