Last update January 24, 2008

Phobos /
Posix Get Opt



Difference (last change) (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:

Discussion:

FolderProjects

FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: January 24, 2008 17:57 (diff))