March 2003
Intermediate to advanced
656 pages
39h 30m
English
The getopt module helps parse the command-line
options and arguments passed to a Python program, available in
sys.argv. The getopt module
distinguishes arguments proper from options: options start with
'-' (or '--' for long-form
options). The first non-option argument terminates option parsing
(similar to most Unix commands, and differently from GNU and Windows
commands). Module getopt supplies a single
function, also called getopt.
Read now
Unlock full access