mirror of https://github.com/python/cpython.git
Allow mac user to set "command line flags" by option-starting python.
This commit is contained in:
parent
292b0f96f3
commit
b7d0df4a91
|
@ -65,6 +65,10 @@ realmain(argc, argv)
|
||||||
if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0')
|
if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0')
|
||||||
unbuffered = 1;
|
unbuffered = 1;
|
||||||
|
|
||||||
|
#ifdef macintosh
|
||||||
|
PyMac_InteractiveOptions(&inspect, &verbose, &suppress_print, &unbuffered, &debugging);
|
||||||
|
#endif
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "c:disuv")) != EOF) {
|
while ((c = getopt(argc, argv, "c:disuv")) != EOF) {
|
||||||
if (c == 'c') {
|
if (c == 'c') {
|
||||||
/* -c is the last option; following arguments
|
/* -c is the last option; following arguments
|
||||||
|
|
Loading…
Reference in New Issue