Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(261066)

Side by Side Diff: Modules/main.c

Issue 11681: -b option undocumented
Patch Set: Created 2 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« Doc/using/cmdline.rst ('K') | « Doc/using/cmdline.rst ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Python interpreter main program */ 1 /* Python interpreter main program */
2 2
3 #include "Python.h" 3 #include "Python.h"
4 #include "osdefs.h" 4 #include "osdefs.h"
5 #include "code.h" /* For CO_FUTURE_DIVISION */ 5 #include "code.h" /* For CO_FUTURE_DIVISION */
6 #include "import.h" 6 #include "import.h"
7 7
8 #ifdef __VMS 8 #ifdef __VMS
9 #include <unixlib.h> 9 #include <unixlib.h>
10 #endif 10 #endif
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 extern int Py_RISCOSWimpFlag; 55 extern int Py_RISCOSWimpFlag;
56 #endif /*RISCOS*/ 56 #endif /*RISCOS*/
57 57
58 /* Short usage message (with %s for argv0) */ 58 /* Short usage message (with %s for argv0) */
59 static char *usage_line = 59 static char *usage_line =
60 "usage: %s [option] ... [-c cmd | -m mod | file | -] [arg] ...\n"; 60 "usage: %s [option] ... [-c cmd | -m mod | file | -] [arg] ...\n";
61 61
62 /* Long usage message, split into parts < 512 bytes */ 62 /* Long usage message, split into parts < 512 bytes */
63 static char *usage_1 = "\ 63 static char *usage_1 = "\
64 Options and arguments (and corresponding environment variables):\n\ 64 Options and arguments (and corresponding environment variables):\n\
65 -b : issue warnings about comparing bytearray with unicode\n\
66 (-bb: issue errors)\n\
65 -B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x\n\ 67 -B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x\n\
66 -c cmd : program passed in as string (terminates option list)\n\ 68 -c cmd : program passed in as string (terminates option list)\n\
67 -d : debug output from parser; also PYTHONDEBUG=x\n\ 69 -d : debug output from parser; also PYTHONDEBUG=x\n\
68 -E : ignore PYTHON* environment variables (such as PYTHONPATH)\n\ 70 -E : ignore PYTHON* environment variables (such as PYTHONPATH)\n\
69 -h : print this help message and exit (also --help)\n\ 71 -h : print this help message and exit (also --help)\n\
70 -i : inspect interactively after running script; forces a prompt even\n\ 72 -i : inspect interactively after running script; forces a prompt even\n\
71 "; 73 ";
72 static char *usage_2 = "\ 74 static char *usage_2 = "\
73 if stdin does not appear to be a terminal; also PYTHONINSPECT=x\n\ 75 if stdin does not appear to be a terminal; also PYTHONINSPECT=x\n\
74 -m mod : run library module as a script (terminates option list)\n\ 76 -m mod : run library module as a script (terminates option list)\n\
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 Py_GetArgcArgv(int *argc, char ***argv) 700 Py_GetArgcArgv(int *argc, char ***argv)
699 { 701 {
700 *argc = orig_argc; 702 *argc = orig_argc;
701 *argv = orig_argv; 703 *argv = orig_argv;
702 } 704 }
703 705
704 #ifdef __cplusplus 706 #ifdef __cplusplus
705 } 707 }
706 #endif 708 #endif
707 709
OLDNEW
« Doc/using/cmdline.rst ('K') | « Doc/using/cmdline.rst ('k') | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+