Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.stsci.edu/spst/UnixTransition/doc/getopt.html
Дата изменения: Thu Nov 5 13:46:16 2015 Дата индексирования: Sun Apr 10 20:08:48 2016 Кодировка: |
getopt | index /usr/local/Python-2.5/lib/python2.5/getopt.py Module Docs |
Parser for command line options.
This module helps scripts to parse the command line arguments in
sys.argv. It supports the same conventions as the Unix getopt()
function (including the special meanings of arguments of the form `-'
and `--'). Long options similar to those supported by GNU software
may be used as well via an optional third argument. This module
provides two functions and an exception:
getopt() -- Parse command line options
gnu_getopt() -- Like getopt(), but allow option and non-option arguments
to be intermixed.
GetoptError -- exception (class) raised with 'opt' attribute, which is the
option involved with the exception.
Modules | ||||||
|
Classes | ||||||||||||||
|
Functions | ||
|
Data | ||
__all__ = ['GetoptError', 'error', 'getopt', 'gnu_getopt'] |