mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
GH-133336: Remove reserved `-J
` flag for Jython (#133444)
This commit is contained in:
parent
c336f1c312
commit
4c56563f7a
5 changed files with 16 additions and 18 deletions
|
@ -37,7 +37,7 @@ static const wchar_t *opt_ptr = L"";
|
|||
|
||||
/* Python command line short and long options */
|
||||
|
||||
#define SHORT_OPTS L"bBc:dEhiIJm:OPqRsStuvVW:xX:?"
|
||||
#define SHORT_OPTS L"bBc:dEhiIm:OPqRsStuvVW:xX:?"
|
||||
|
||||
static const _PyOS_LongOption longopts[] = {
|
||||
/* name, has_arg, val (used in switch in initconfig.c) */
|
||||
|
@ -133,13 +133,6 @@ int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex)
|
|||
return opt->val;
|
||||
}
|
||||
|
||||
if (option == 'J') {
|
||||
if (_PyOS_opterr) {
|
||||
fprintf(stderr, "-J is reserved for Jython\n");
|
||||
}
|
||||
return '_';
|
||||
}
|
||||
|
||||
if ((ptr = wcschr(SHORT_OPTS, option)) == NULL) {
|
||||
if (_PyOS_opterr) {
|
||||
fprintf(stderr, "Unknown option: -%c\n", (char)option);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue