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
d1bed8e5
Kaydet (Commit)
d1bed8e5
authored
Eki 22, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#6977: getopt does not support optional option arguments.
üst
76d6d4a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
getopt.rst
Doc/library/getopt.rst
+12
-11
No files found.
Doc/library/getopt.rst
Dosyayı görüntüle @
d1bed8e5
...
@@ -30,19 +30,20 @@ exception:
...
@@ -30,19 +30,20 @@ exception:
.. note::
.. note::
Unlike GNU :cfunc:`getopt`, after a non-option argument, all further
arguments
Unlike GNU :cfunc:`getopt`, after a non-option argument, all further
ar
e considered also non-options. This is similar to the way non-GNU Unix systems
ar
guments are considered also non-options. This is similar to the way
work.
non-GNU Unix systems
work.
*long_options*, if specified, must be a list of strings with the names of the
*long_options*, if specified, must be a list of strings with the names of the
long options which should be supported. The leading ``'-``\ ``-'`` characters
long options which should be supported. The leading ``'-``\ ``-'``
should not be included in the option name. Long options which require an
characters should not be included in the option name. Long options which
argument should be followed by an equal sign (``'='``). To accept only long
require an argument should be followed by an equal sign (``'='``). Optional
options, *options* should be an empty string. Long options on the command line
arguments are not supported. To accept only long options, *options* should
can be recognized so long as they provide a prefix of the option name that
be an empty string. Long options on the command line can be recognized so
matches exactly one of the accepted options. For example, if *long_options* is
long as they provide a prefix of the option name that matches exactly one of
``['foo', 'frob']``, the option :option:`--fo` will match as :option:`--foo`,
the accepted options. For example, if *long_options* is ``['foo', 'frob']``,
but :option:`--f` will not match uniquely, so :exc:`GetoptError` will be raised.
the option :option:`--fo` will match as :option:`--foo`, but :option:`--f`
will not match uniquely, so :exc:`GetoptError` will be raised.
The return value consists of two elements: the first is a list of ``(option,
The return value consists of two elements: the first is a list of ``(option,
value)`` pairs; the second is the list of program arguments left after the
value)`` pairs; the second is the list of program arguments left after the
...
...
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