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
fd115517
Kaydet (Commit)
fd115517
authored
Eki 06, 2013
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge with 3.3
üst
aca718e9
29fc4bf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
argparse.rst
Doc/library/argparse.rst
+4
-4
No files found.
Doc/library/argparse.rst
Dosyayı görüntüle @
fd115517
...
@@ -46,7 +46,7 @@ produces either the sum or the max::
...
@@ -46,7 +46,7 @@ produces either the sum or the max::
Assuming the Python code above is saved into a file called ``prog.py``, it can
Assuming the Python code above is saved into a file called ``prog.py``, it can
be run at the command line and provides useful help messages::
be run at the command line and provides useful help messages::
$ prog.py -h
$ p
ython p
rog.py -h
usage: prog.py [-h] [--sum] N [N ...]
usage: prog.py [-h] [--sum] N [N ...]
Process some integers.
Process some integers.
...
@@ -61,15 +61,15 @@ be run at the command line and provides useful help messages::
...
@@ -61,15 +61,15 @@ be run at the command line and provides useful help messages::
When run with the appropriate arguments, it prints either the sum or the max of
When run with the appropriate arguments, it prints either the sum or the max of
the command-line integers::
the command-line integers::
$ prog.py 1 2 3 4
$ p
ython p
rog.py 1 2 3 4
4
4
$ prog.py 1 2 3 4 --sum
$ p
ython p
rog.py 1 2 3 4 --sum
10
10
If invalid arguments are passed in, it will issue an error::
If invalid arguments are passed in, it will issue an error::
$ prog.py a b c
$ p
ython p
rog.py a b c
usage: prog.py [-h] [--sum] N [N ...]
usage: prog.py [-h] [--sum] N [N ...]
prog.py: error: argument N: invalid int value: 'a'
prog.py: error: argument N: invalid int value: 'a'
...
...
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