diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-21 13:42:28 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-21 13:42:28 +0000 |
commit | 657e9caeeac2b54250d697b83f10c2f106353538 (patch) | |
tree | a4f3c89e363d1db0e0afef7d36f963f657f03714 /Python/getopt.c | |
parent | b2729946a60b7601b06a8f75cb120698e47f5f00 (diff) | |
download | cpython-657e9caeeac2b54250d697b83f10c2f106353538.tar.gz |
Issue #10089: Add support for arbitrary -X options on the command-line.
They can be retrieved through a new attribute `sys._xoptions`.
Diffstat (limited to 'Python/getopt.c')
-rw-r--r-- | Python/getopt.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/getopt.c b/Python/getopt.c index 5147320af2..064a1874ea 100644 --- a/Python/getopt.c +++ b/Python/getopt.c @@ -89,12 +89,6 @@ int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring) return '_'; } - if (option == 'X') { - fprintf(stderr, - "-X is reserved for implementation-specific arguments\n"); - return '_'; - } - if ((ptr = wcschr(optstring, option)) == NULL) { if (_PyOS_opterr) fprintf(stderr, "Unknown option: -%c\n", (char)option); |