Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v9 / lib / python2.4 / getopt.py
CommitLineData
920dae64
AT
1# -*- coding: iso-8859-1 -*-
2"""Parser for command line options.
3
4This module helps scripts to parse the command line arguments in
5sys.argv. It supports the same conventions as the Unix getopt()
6function (including the special meanings of arguments of the form `-'
7and `--'). Long options similar to those supported by GNU software
8may be used as well via an optional third argument. This module
9provides two functions and an exception:
10
11getopt() -- Parse command line options
12gnu_getopt() -- Like getopt(), but allow option and non-option arguments
13to be intermixed.
14GetoptError -- exception (class) raised with 'opt' attribute, which is the
15option involved with the exception.
16"""
17
18# Long option support added by Lars Wirzenius <liw@iki.fi>.
19#
20# Gerrit Holl <gerrit@nl.linux.org> moved the string-based exceptions
21# to class-based exceptions.
22#
23