Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
47f5fdc1
Kaydet (Commit)
47f5fdc1
authored
Ara 15, 2000
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add the -W option.
üst
2a862c61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
main.c
Modules/main.c
+8
-1
No files found.
Modules/main.c
Dosyayı görüntüle @
47f5fdc1
...
...
@@ -48,6 +48,7 @@ static char *usage_mid = "\
-x : skip first line of source, allowing use of non-Unix forms of #!cmd
\n
\
-h : print this help message and exit
\n
\
-V : print the Python version number and exit
\n
\
-W arg : warning control (arg is action:message:category:module:lineno)
\n
\
-c cmd : program passed in as string (terminates option list)
\n
\
file : program read from script file
\n
\
- : program read from stdin (default; interactive mode if a tty)
\n
\
...
...
@@ -101,7 +102,9 @@ Py_Main(int argc, char **argv)
if
((
p
=
getenv
(
"PYTHONUNBUFFERED"
))
&&
*
p
!=
'\0'
)
unbuffered
=
1
;
while
((
c
=
_PyOS_GetOpt
(
argc
,
argv
,
"c:diOStuUvxXhV"
))
!=
EOF
)
{
PySys_ResetWarnOptions
();
while
((
c
=
_PyOS_GetOpt
(
argc
,
argv
,
"c:diOStuUvxXhVW:"
))
!=
EOF
)
{
if
(
c
==
'c'
)
{
/* -c is the last option; following arguments
that look like options are left for the
...
...
@@ -160,6 +163,10 @@ Py_Main(int argc, char **argv)
version
++
;
break
;
case
'W'
:
PySys_AddWarnOption
(
_PyOS_optarg
);
break
;
/* This space reserved for other options */
default
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment