Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | A few naughty external scripts do 'raise getopt.error, "blah"', and | Andrew M. Kuchling | 2003-02-06 | 1 | -1/+1 |
| | | | | | now crash because two arguments are expected. Add a default value to keep those scripts running. | ||||
* | Add encoding declaration. | Martin v. Löwis | 2002-08-04 | 1 | -0/+1 |
| | |||||
* | Use os.environ.get() in stead of os.getenv() (which is platform-dependent). | Jack Jansen | 2002-07-26 | 1 | -1/+1 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2002-07-16 | 1 | -2/+2 |
| | |||||
* | gnu_getopt should be exported in __all__ | Skip Montanaro | 2002-06-07 | 1 | -1/+1 |
| | |||||
* | Use isinstance for the type check, use booleans. | Martin v. Löwis | 2002-06-06 | 1 | -4/+4 |
| | |||||
* | Patch 473512: add GNU style scanning as gnu_getopt. | Martin v. Löwis | 2002-06-06 | 1 | -2/+68 |
| | |||||
* | Convert a pile of obvious "yes/no" functions to return bool. | Tim Peters | 2002-04-04 | 1 | -2/+2 |
| | |||||
* | Wrapped a long line. | Fred Drake | 2001-12-12 | 1 | -3/+4 |
| | | | | Converted to use "".startswith() to avoid slicing (& temp string creation). | ||||
* | more __all__ updates | Skip Montanaro | 2001-01-20 | 1 | -0/+2 |
| | |||||
* | GetoptError is always initialized with exactly two parameters, so simplify | Fred Drake | 2001-01-08 | 1 | -7/+4 |
| | | | | the constructor. | ||||
* | getopt used to sort the long option names, in an attempt to simplify | Tim Peters | 2000-12-29 | 1 | -12/+2 |
| | | | | | | | the logic. That resulted in a bug. My previous getopt checkin repaired the bug but left the sorting. The solution is significantly simpler if we don't bother sorting at all, so this checkin gets rid of the sort and the code that relied on it. | ||||
* | Fix for SF bug | Tim Peters | 2000-12-27 | 1 | -13/+30 |
| | | | | | | https://sourceforge.net/bugs/?func=detailbug&bug_id=126863&group_id=5470 "getopt long option handling broken". Tossed the excruciating logic in long_has_args in favor of something obviously correct. | ||||
* | Gerrit forgot to remove the "import string". | Guido van Rossum | 2000-02-25 | 1 | -2/+0 |
| | |||||
* | Gerrit Holl's patch to move attribution from the docstring to a | Fred Drake | 2000-02-25 | 1 | -4/+4 |
| | | | | comment. <gerrit@nl.linux.org> | ||||
* | Actually, the previous batch's comment should have been different; | Guido van Rossum | 2000-02-04 | 1 | -1/+1 |
| | | | | | | | | | | *this* set of patches is Ka-Ping's final sweep: The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac. | ||||
* | Contribution from Gerrit Holl: | Guido van Rossum | 1999-12-21 | 1 | -8/+26 |
| | | | | | | | | | This patch changes the string-based exceptions to class-based exceptions, so that you can fetch the unknown option as an attribute. As far as I know, it is backward compatible. [The new exception class is called GetoptError; the name error is an alias for compatibility.] | ||||
* | Accept a non-list sequence for the long options (request by Jack Jansen). | Guido van Rossum | 1998-11-17 | 1 | -39/+54 |
| | | | | | | | | | | | | | Because it might be a common mistake to pass a single string, this situation is treated separately. Since we were making a copy of the longopts list anyway, we now use the list() function -- this made it necessary to change all uses of the local variable (and argument) 'list' to something more meaningful, i.e., 'opts'. Also added docstrings (copied from the library manual) and removed the (now redundant) module comments. | ||||
* | Mass check-in after untabifying all files that need it. | Guido van Rossum | 1998-03-26 | 1 | -41/+41 |
| | |||||
* | Layout and cleanup by Fred | Guido van Rossum | 1996-09-11 | 1 | -82/+76 |
| | |||||
* | Rewritten by Lars Wizenius to add long options | Guido van Rossum | 1996-09-09 | 1 | -25/+90 |
| | |||||
* | Bugfix: it choked on an empty argument! | Guido van Rossum | 1992-01-09 | 1 | -1/+1 |
| | |||||
* | New == syntax | Guido van Rossum | 1992-01-01 | 1 | -5/+5 |
| | |||||
* | Initial revision | Guido van Rossum | 1990-10-13 | 1 | -0/+47 |