summaryrefslogtreecommitdiff
path: root/Python/getopt.c
AgeCommit message (Collapse)AuthorLines
2012-02-21Fix crash at startup with -W options.Antoine Pitrou-1/+9
2010-05-09Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou-61/+61
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
2008-04-13Improve -X error message.Georg Brandl-1/+1
2008-04-12Applied patch #2617 from Frank Wierzbicki wit some extras from meChristian Heimes-1/+12
-J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future.
2006-07-12Accept long options "--help" and "--version".Georg Brandl-4/+27
2006-04-13spread the extern "C" { } magic pixie dust around. Python itself builds nowAnthony Baxter-0/+9
using a C++ compiler. Still lots and lots of errors in the modules built by setup.py, and a bunch of warnings from g++ in the core.
2000-11-03Move our own getopt() implementation to _PyOS_GetOpt(), and use itThomas Wouters-31/+18
regardless of whether the system getopt() does what we want. This avoids the hassle with prototypes and externs, and the check to see if the system getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to avoid name clashes. Add new include file to define the right symbols. Fix Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on Python to provide it.
2000-07-22Mass ANSIfication of function definitions. Doesn't cover all 'extern'Thomas Wouters-5/+2
declarations yet, those come later.
1999-09-13Tim Peters discovered a bug in the Python-supplied getopt():Guido van Rossum-1/+2
it doesn't recognize a lone dash as a non-flag argument. Now it does.
1998-12-17Patch by Chris Herborth:Guido van Rossum-0/+4
have to use a const-correct prototype on BeOS or the compiler gets uppity.
1997-09-30Fix a bug in this code that made it do the wrong thing when an optionGuido van Rossum-1/+4
was a single '-'. Thanks to Andrew Kuchling.
1997-04-11(Jack:) Don't define TRUE and FALSE if already defined.Guido van Rossum-1/+4
1995-01-20don't use function prototypesGuido van Rossum-1/+4
1994-04-28New version handles -o<string> same as -o <string>Guido van Rossum-31/+62
1994-04-14A getopt.c for your amusementGuido van Rossum-0/+54