René's URL Explorer Experiment


Title: optparse — Parser for command line options — Python 3.14.2 documentation

Open Graph Title: optparse — Parser for command line options

Description: Source code: Lib/optparse.py Choosing an argument parsing library: The standard library includes three argument parsing libraries: getopt: a module that closely mirrors the procedural C getopt API....

Open Graph Description: Source code: Lib/optparse.py Choosing an argument parsing library: The standard library includes three argument parsing libraries: getopt: a module that closely mirrors the procedural C getopt API....

Opengraph URL: https://docs.python.org/3/library/optparse.html

direct link

Domain: docs.python.org

og:typewebsite
og:site_namePython documentation
og:image:width1146
og:image:height600
og:imagehttps://docs.python.org/3.14/_images/social_previews/summary_library_optparse_af18d9d1.png
og:image:altSource code: Lib/optparse.py Choosing an argument parsing library: The standard library includes three argument parsing libraries: getopt: a module that closely mirrors the procedural C getopt API....
twitter:cardsummary_large_image
theme-color#3776ab
readthedocs-addons-api-version1

Links:

https://www.python.org/
Table of Contentshttps://docs.python.org/3/contents.html
optparse — Parser for command line optionshttps://docs.python.org/3/library/optparse.html
Choosing an argument parsing libraryhttps://docs.python.org/3/library/optparse.html#choosing-an-argument-parsing-library
Introductionhttps://docs.python.org/3/library/optparse.html#introduction
Backgroundhttps://docs.python.org/3/library/optparse.html#background
Terminologyhttps://docs.python.org/3/library/optparse.html#terminology
What are options for?https://docs.python.org/3/library/optparse.html#what-are-options-for
What are positional arguments for?https://docs.python.org/3/library/optparse.html#what-are-positional-arguments-for
Tutorialhttps://docs.python.org/3/library/optparse.html#tutorial
Understanding option actionshttps://docs.python.org/3/library/optparse.html#understanding-option-actions
The store actionhttps://docs.python.org/3/library/optparse.html#the-store-action
Handling boolean (flag) optionshttps://docs.python.org/3/library/optparse.html#handling-boolean-flag-options
Other actionshttps://docs.python.org/3/library/optparse.html#other-actions
Default valueshttps://docs.python.org/3/library/optparse.html#default-values
Generating helphttps://docs.python.org/3/library/optparse.html#generating-help
Grouping Optionshttps://docs.python.org/3/library/optparse.html#grouping-options
Printing a version stringhttps://docs.python.org/3/library/optparse.html#printing-a-version-string
How optparse handles errorshttps://docs.python.org/3/library/optparse.html#how-optparse-handles-errors
Putting it all togetherhttps://docs.python.org/3/library/optparse.html#putting-it-all-together
Reference Guidehttps://docs.python.org/3/library/optparse.html#reference-guide
Creating the parserhttps://docs.python.org/3/library/optparse.html#creating-the-parser
Populating the parserhttps://docs.python.org/3/library/optparse.html#populating-the-parser
Defining optionshttps://docs.python.org/3/library/optparse.html#defining-options
Option attributeshttps://docs.python.org/3/library/optparse.html#option-attributes
Standard option actionshttps://docs.python.org/3/library/optparse.html#standard-option-actions
Standard option typeshttps://docs.python.org/3/library/optparse.html#standard-option-types
Parsing argumentshttps://docs.python.org/3/library/optparse.html#parsing-arguments
Querying and manipulating your option parserhttps://docs.python.org/3/library/optparse.html#querying-and-manipulating-your-option-parser
Conflicts between optionshttps://docs.python.org/3/library/optparse.html#conflicts-between-options
Cleanuphttps://docs.python.org/3/library/optparse.html#cleanup
Other methodshttps://docs.python.org/3/library/optparse.html#other-methods
Option Callbackshttps://docs.python.org/3/library/optparse.html#option-callbacks
Defining a callback optionhttps://docs.python.org/3/library/optparse.html#defining-a-callback-option
How callbacks are calledhttps://docs.python.org/3/library/optparse.html#how-callbacks-are-called
Raising errors in a callbackhttps://docs.python.org/3/library/optparse.html#raising-errors-in-a-callback
Callback example 1: trivial callbackhttps://docs.python.org/3/library/optparse.html#callback-example-1-trivial-callback
Callback example 2: check option orderhttps://docs.python.org/3/library/optparse.html#callback-example-2-check-option-order
Callback example 3: check option order (generalized)https://docs.python.org/3/library/optparse.html#callback-example-3-check-option-order-generalized
Callback example 4: check arbitrary conditionhttps://docs.python.org/3/library/optparse.html#callback-example-4-check-arbitrary-condition
Callback example 5: fixed argumentshttps://docs.python.org/3/library/optparse.html#callback-example-5-fixed-arguments
Callback example 6: variable argumentshttps://docs.python.org/3/library/optparse.html#callback-example-6-variable-arguments
Extending optparsehttps://docs.python.org/3/library/optparse.html#extending-optparse
Adding new typeshttps://docs.python.org/3/library/optparse.html#adding-new-types
Adding new actionshttps://docs.python.org/3/library/optparse.html#adding-new-actions
Exceptionshttps://docs.python.org/3/library/optparse.html#exceptions
Migrating optparse code to argparsehttps://docs.python.org/3/howto/argparse-optparse.html
getpass — Portable password inputhttps://docs.python.org/3/library/getpass.html
Report a bughttps://docs.python.org/3/bugs.html
Show source https://github.com/python/cpython/blob/main/Doc/library/optparse.rst?plain=1
indexhttps://docs.python.org/3/genindex.html
moduleshttps://docs.python.org/3/py-modindex.html
nexthttps://docs.python.org/3/library/getpass.html
previoushttps://docs.python.org/3/howto/argparse-optparse.html
Pythonhttps://www.python.org/
3.14.2 Documentationhttps://docs.python.org/3/index.html
The Python Standard Libraryhttps://docs.python.org/3/library/index.html
Command-line interface librarieshttps://docs.python.org/3/library/cmdlinelibs.html
optparse — Parser for command line optionshttps://docs.python.org/3/library/optparse.html
https://docs.python.org/3/library/optparse.html#module-optparse
Lib/optparse.pyhttps://github.com/python/cpython/tree/3.14/Lib/optparse.py
https://docs.python.org/3/library/optparse.html#choosing-an-argument-parsing-library
getopthttps://docs.python.org/3/library/getopt.html#module-getopt
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
argparsehttps://docs.python.org/3/library/argparse.html#module-argparse
argparsehttps://docs.python.org/3/library/argparse.html#module-argparse
getopthttps://docs.python.org/3/library/getopt.html#module-getopt
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
argparsehttps://docs.python.org/3/library/argparse.html#module-argparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
argparsehttps://docs.python.org/3/library/argparse.html#module-argparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
clickhttps://pypi.org/project/click/
typerhttps://pypi.org/project/typer/
msgspec-clickhttps://pypi.org/project/msgspec-click/
https://docs.python.org/3/library/optparse.html#introduction
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
getopthttps://docs.python.org/3/library/getopt.html#module-getopt
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#background
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#terminology
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#what-are-options-for
https://docs.python.org/3/library/optparse.html#what-are-positional-arguments-for
https://docs.python.org/3/library/optparse.html#tutorial
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
OptionParser.add_option()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.add_option
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
actionhttps://docs.python.org/3/library/optparse.html#optparse.Option.action
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
helphttps://docs.python.org/3/library/optparse.html#optparse.Option.help
actionhttps://docs.python.org/3/library/optparse.html#optparse.Option.action
https://docs.python.org/3/library/optparse.html#understanding-option-actions
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
Extending optparsehttps://docs.python.org/3/library/optparse.html#optparse-extending-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#the-store-action
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
Extending optparsehttps://docs.python.org/3/library/optparse.html#optparse-extending-optparse
https://docs.python.org/3/library/optparse.html#handling-boolean-flag-options
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#other-actions
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
Option.consthttps://docs.python.org/3/library/optparse.html#optparse.Option.const
Reference Guidehttps://docs.python.org/3/library/optparse.html#optparse-reference-guide
Option Callbackshttps://docs.python.org/3/library/optparse.html#optparse-option-callbacks
https://docs.python.org/3/library/optparse.html#default-values
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
https://docs.python.org/3/library/optparse.html#generating-help
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
helphttps://docs.python.org/3/library/optparse.html#optparse.Option.help
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
str()https://docs.python.org/3/library/stdtypes.html#str
https://docs.python.org/3/library/optparse.html#grouping-options
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
OptionGrouphttps://docs.python.org/3/library/optparse.html#optparse.OptionGroup
https://docs.python.org/3/library/optparse.html#optparse.OptionGroup
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
OptionGrouphttps://docs.python.org/3/library/optparse.html#optparse.OptionGroup
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
OptionGrouphttps://docs.python.org/3/library/optparse.html#optparse.OptionGroup
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.get_option_group
OptionGrouphttps://docs.python.org/3/library/optparse.html#optparse.OptionGroup
OptionGrouphttps://docs.python.org/3/library/optparse.html#optparse.OptionGroup
https://docs.python.org/3/library/optparse.html#printing-a-version-string
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.print_version
print_usage()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.print_usage
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.get_version
print_version()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.print_version
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#how-optparse-handles-errors
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
OptionParser.add_option()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.add_option
optparse.OptionErrorhttps://docs.python.org/3/library/optparse.html#optparse.OptionError
TypeErrorhttps://docs.python.org/3/library/exceptions.html#TypeError
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#putting-it-all-together
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#reference-guide
https://docs.python.org/3/library/optparse.html#creating-the-parser
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#optparse.OptionParser
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
add_option()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.add_option
add_option()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.add_option
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
Conflicts between optionshttps://docs.python.org/3/library/optparse.html#optparse-conflicts-between-options
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#populating-the-parser
OptionParser.add_option()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.add_option
Tutorialhttps://docs.python.org/3/library/optparse.html#optparse-tutorial
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#defining-options
Optionhttps://docs.python.org/3/library/optparse.html#optparse.Option
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.add_option
actionhttps://docs.python.org/3/library/optparse.html#optparse.Option.action
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
OptionErrorhttps://docs.python.org/3/library/optparse.html#optparse.OptionError
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
Option.consthttps://docs.python.org/3/library/optparse.html#optparse.Option.const
Option.consthttps://docs.python.org/3/library/optparse.html#optparse.Option.const
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
Standard option actionshttps://docs.python.org/3/library/optparse.html#optparse-standard-option-actions
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparse.Valueshttps://docs.python.org/3/library/optparse.html#optparse.Values
https://docs.python.org/3/library/optparse.html#optparse.Values
OptionParser.parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
OptionParser.parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
Parsing argumentshttps://docs.python.org/3/library/optparse.html#optparse-parsing-arguments
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
actionhttps://docs.python.org/3/library/optparse.html#optparse.Option.action
actionhttps://docs.python.org/3/library/optparse.html#optparse.Option.action
https://docs.python.org/3/library/optparse.html#option-attributes
https://docs.python.org/3/library/optparse.html#optparse.Option
OptionParser.add_option()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.add_option
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
OptionParser.add_option()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.add_option
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
OptionErrorhttps://docs.python.org/3/library/optparse.html#optparse.OptionError
https://docs.python.org/3/library/optparse.html#optparse.Option.action
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
herehttps://docs.python.org/3/library/optparse.html#optparse-standard-option-actions
https://docs.python.org/3/library/optparse.html#optparse.Option.type
herehttps://docs.python.org/3/library/optparse.html#optparse-standard-option-types
https://docs.python.org/3/library/optparse.html#optparse.Option.dest
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#optparse.Option.default
OptionParser.set_defaults()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.set_defaults
https://docs.python.org/3/library/optparse.html#optparse.Option.nargs
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
https://docs.python.org/3/library/optparse.html#optparse.Option.const
https://docs.python.org/3/library/optparse.html#optparse.Option.choices
https://docs.python.org/3/library/optparse.html#optparse.Option.callback
Option Callbackshttps://docs.python.org/3/library/optparse.html#optparse-option-callbacks
https://docs.python.org/3/library/optparse.html#optparse.Option.callback_args
https://docs.python.org/3/library/optparse.html#optparse.Option.callback_kwargs
https://docs.python.org/3/library/optparse.html#optparse.Option.help
helphttps://docs.python.org/3/library/optparse.html#optparse.Option.help
https://docs.python.org/3/library/optparse.html#optparse.Option.metavar
Tutorialhttps://docs.python.org/3/library/optparse.html#optparse-tutorial
https://docs.python.org/3/library/optparse.html#standard-option-actions
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
choiceshttps://docs.python.org/3/library/optparse.html#optparse.Option.choices
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
Standard option typeshttps://docs.python.org/3/library/optparse.html#optparse-standard-option-types
choiceshttps://docs.python.org/3/library/optparse.html#optparse.Option.choices
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
consthttps://docs.python.org/3/library/optparse.html#optparse.Option.const
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
consthttps://docs.python.org/3/library/optparse.html#optparse.Option.const
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
choiceshttps://docs.python.org/3/library/optparse.html#optparse.Option.choices
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
consthttps://docs.python.org/3/library/optparse.html#optparse.Option.const
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
consthttps://docs.python.org/3/library/optparse.html#optparse.Option.const
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
callbackhttps://docs.python.org/3/library/optparse.html#optparse.Option.callback
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
callback_argshttps://docs.python.org/3/library/optparse.html#optparse.Option.callback_args
callback_kwargshttps://docs.python.org/3/library/optparse.html#optparse.Option.callback_kwargs
callbackhttps://docs.python.org/3/library/optparse.html#optparse.Option.callback
Option Callbackshttps://docs.python.org/3/library/optparse.html#optparse-option-callbacks
helphttps://docs.python.org/3/library/optparse.html#optparse.Option.help
helphttps://docs.python.org/3/library/optparse.html#optparse.Option.help
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
helphttps://docs.python.org/3/library/optparse.html#optparse.Option.help
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
helphttps://docs.python.org/3/library/optparse.html#optparse.Option.help
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#standard-option-types
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
Extending optparsehttps://docs.python.org/3/library/optparse.html#optparse-extending-optparse
int()https://docs.python.org/3/library/functions.html#int
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
float()https://docs.python.org/3/library/functions.html#float
complex()https://docs.python.org/3/library/functions.html#complex
choiceshttps://docs.python.org/3/library/optparse.html#optparse.Option.choices
OptionValueErrorhttps://docs.python.org/3/library/optparse.html#optparse.OptionValueError
https://docs.python.org/3/library/optparse.html#parsing-arguments
parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
Valueshttps://docs.python.org/3/library/optparse.html#optparse.Values
Valueshttps://docs.python.org/3/library/optparse.html#optparse.Values
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
setattr()https://docs.python.org/3/library/functions.html#setattr
parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
https://docs.python.org/3/library/optparse.html#querying-and-manipulating-your-option-parser
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.disable_interspersed_args
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
disable_interspersed_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.disable_interspersed_args
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.enable_interspersed_args
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.get_option
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.has_option
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.remove_option
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
ValueErrorhttps://docs.python.org/3/library/exceptions.html#ValueError
https://docs.python.org/3/library/optparse.html#conflicts-between-options
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
OptionConflictErrorhttps://docs.python.org/3/library/optparse.html#optparse.OptionConflictError
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#cleanup
https://docs.python.org/3/library/optparse.html#other-methods
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.set_usage
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.print_usage
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.get_usage
print_usage()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.print_usage
https://docs.python.org/3/library/optparse.html#optparse.OptionParser.set_defaults
set_defaults()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.set_defaults
set_defaults()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.set_defaults
https://docs.python.org/3/library/optparse.html#option-callbacks
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#defining-a-callback-option
OptionParser.add_option()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.add_option
actionhttps://docs.python.org/3/library/optparse.html#optparse.Option.action
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
callback_argshttps://docs.python.org/3/library/optparse.html#optparse.Option.callback_args
callback_kwargshttps://docs.python.org/3/library/optparse.html#optparse.Option.callback_kwargs
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
callback_argshttps://docs.python.org/3/library/optparse.html#optparse.Option.callback_args
callback_kwargshttps://docs.python.org/3/library/optparse.html#optparse.Option.callback_kwargs
https://docs.python.org/3/library/optparse.html#how-callbacks-are-called
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
callback_argshttps://docs.python.org/3/library/optparse.html#optparse.Option.callback_args
callback_kwargshttps://docs.python.org/3/library/optparse.html#optparse.Option.callback_kwargs
https://docs.python.org/3/library/optparse.html#raising-errors-in-a-callback
OptionValueErrorhttps://docs.python.org/3/library/optparse.html#optparse.OptionValueError
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#callback-example-1-trivial-callback
https://docs.python.org/3/library/optparse.html#callback-example-2-check-option-order
https://docs.python.org/3/library/optparse.html#callback-example-3-check-option-order-generalized
https://docs.python.org/3/library/optparse.html#callback-example-4-check-arbitrary-condition
https://docs.python.org/3/library/optparse.html#callback-example-5-fixed-arguments
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
nargshttps://docs.python.org/3/library/optparse.html#optparse.Option.nargs
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#callback-example-6-variable-arguments
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#extending-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#adding-new-types
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
Optionhttps://docs.python.org/3/library/optparse.html#optparse.Option
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
TYPEShttps://docs.python.org/3/library/optparse.html#optparse.Option.TYPES
TYPE_CHECKERhttps://docs.python.org/3/library/optparse.html#optparse.Option.TYPE_CHECKER
https://docs.python.org/3/library/optparse.html#optparse.Option.TYPES
TYPEShttps://docs.python.org/3/library/optparse.html#optparse.Option.TYPES
https://docs.python.org/3/library/optparse.html#optparse.Option.TYPE_CHECKER
Optionhttps://docs.python.org/3/library/optparse.html#optparse.Option
OptionParser.parse_args()https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
OptionValueErrorhttps://docs.python.org/3/library/optparse.html#optparse.OptionValueError
OptionValueErrorhttps://docs.python.org/3/library/optparse.html#optparse.OptionValueError
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
TYPE_CHECKERhttps://docs.python.org/3/library/optparse.html#optparse.Option.TYPE_CHECKER
copy()https://docs.python.org/3/library/copy.html#module-copy
Option.TYPE_CHECKERhttps://docs.python.org/3/library/optparse.html#optparse.Option.TYPE_CHECKER
TYPE_CHECKERhttps://docs.python.org/3/library/optparse.html#optparse.Option.TYPE_CHECKER
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
https://docs.python.org/3/library/optparse.html#adding-new-actions
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
desthttps://docs.python.org/3/library/optparse.html#optparse.Option.dest
typehttps://docs.python.org/3/library/optparse.html#optparse.Option.type
https://docs.python.org/3/library/optparse.html#optparse.Option.ACTIONS
https://docs.python.org/3/library/optparse.html#optparse.Option.STORE_ACTIONS
https://docs.python.org/3/library/optparse.html#optparse.Option.TYPED_ACTIONS
https://docs.python.org/3/library/optparse.html#optparse.Option.ALWAYS_TYPED_ACTIONS
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
ALWAYS_TYPED_ACTIONShttps://docs.python.org/3/library/optparse.html#optparse.Option.ALWAYS_TYPED_ACTIONS
STORE_ACTIONShttps://docs.python.org/3/library/optparse.html#optparse.Option.STORE_ACTIONS
TYPED_ACTIONShttps://docs.python.org/3/library/optparse.html#optparse.Option.TYPED_ACTIONS
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
ALWAYS_TYPED_ACTIONShttps://docs.python.org/3/library/optparse.html#optparse.Option.ALWAYS_TYPED_ACTIONS
optparsehttps://docs.python.org/3/library/optparse.html#module-optparse
getattr()https://docs.python.org/3/library/functions.html#getattr
https://docs.python.org/3/library/optparse.html#exceptions
https://docs.python.org/3/library/optparse.html#optparse.OptionError
Optionhttps://docs.python.org/3/library/optparse.html#optparse.Option
https://docs.python.org/3/library/optparse.html#optparse.OptionConflictError
OptionParserhttps://docs.python.org/3/library/optparse.html#optparse.OptionParser
https://docs.python.org/3/library/optparse.html#optparse.OptionValueError
https://docs.python.org/3/library/optparse.html#optparse.BadOptionError
https://docs.python.org/3/library/optparse.html#optparse.AmbiguousOptionError
Table of Contentshttps://docs.python.org/3/contents.html
optparse — Parser for command line optionshttps://docs.python.org/3/library/optparse.html
Choosing an argument parsing libraryhttps://docs.python.org/3/library/optparse.html#choosing-an-argument-parsing-library
Introductionhttps://docs.python.org/3/library/optparse.html#introduction
Backgroundhttps://docs.python.org/3/library/optparse.html#background
Terminologyhttps://docs.python.org/3/library/optparse.html#terminology
What are options for?https://docs.python.org/3/library/optparse.html#what-are-options-for
What are positional arguments for?https://docs.python.org/3/library/optparse.html#what-are-positional-arguments-for
Tutorialhttps://docs.python.org/3/library/optparse.html#tutorial
Understanding option actionshttps://docs.python.org/3/library/optparse.html#understanding-option-actions
The store actionhttps://docs.python.org/3/library/optparse.html#the-store-action
Handling boolean (flag) optionshttps://docs.python.org/3/library/optparse.html#handling-boolean-flag-options
Other actionshttps://docs.python.org/3/library/optparse.html#other-actions
Default valueshttps://docs.python.org/3/library/optparse.html#default-values
Generating helphttps://docs.python.org/3/library/optparse.html#generating-help
Grouping Optionshttps://docs.python.org/3/library/optparse.html#grouping-options
Printing a version stringhttps://docs.python.org/3/library/optparse.html#printing-a-version-string
How optparse handles errorshttps://docs.python.org/3/library/optparse.html#how-optparse-handles-errors
Putting it all togetherhttps://docs.python.org/3/library/optparse.html#putting-it-all-together
Reference Guidehttps://docs.python.org/3/library/optparse.html#reference-guide
Creating the parserhttps://docs.python.org/3/library/optparse.html#creating-the-parser
Populating the parserhttps://docs.python.org/3/library/optparse.html#populating-the-parser
Defining optionshttps://docs.python.org/3/library/optparse.html#defining-options
Option attributeshttps://docs.python.org/3/library/optparse.html#option-attributes
Standard option actionshttps://docs.python.org/3/library/optparse.html#standard-option-actions
Standard option typeshttps://docs.python.org/3/library/optparse.html#standard-option-types
Parsing argumentshttps://docs.python.org/3/library/optparse.html#parsing-arguments
Querying and manipulating your option parserhttps://docs.python.org/3/library/optparse.html#querying-and-manipulating-your-option-parser
Conflicts between optionshttps://docs.python.org/3/library/optparse.html#conflicts-between-options
Cleanuphttps://docs.python.org/3/library/optparse.html#cleanup
Other methodshttps://docs.python.org/3/library/optparse.html#other-methods
Option Callbackshttps://docs.python.org/3/library/optparse.html#option-callbacks
Defining a callback optionhttps://docs.python.org/3/library/optparse.html#defining-a-callback-option
How callbacks are calledhttps://docs.python.org/3/library/optparse.html#how-callbacks-are-called
Raising errors in a callbackhttps://docs.python.org/3/library/optparse.html#raising-errors-in-a-callback
Callback example 1: trivial callbackhttps://docs.python.org/3/library/optparse.html#callback-example-1-trivial-callback
Callback example 2: check option orderhttps://docs.python.org/3/library/optparse.html#callback-example-2-check-option-order
Callback example 3: check option order (generalized)https://docs.python.org/3/library/optparse.html#callback-example-3-check-option-order-generalized
Callback example 4: check arbitrary conditionhttps://docs.python.org/3/library/optparse.html#callback-example-4-check-arbitrary-condition
Callback example 5: fixed argumentshttps://docs.python.org/3/library/optparse.html#callback-example-5-fixed-arguments
Callback example 6: variable argumentshttps://docs.python.org/3/library/optparse.html#callback-example-6-variable-arguments
Extending optparsehttps://docs.python.org/3/library/optparse.html#extending-optparse
Adding new typeshttps://docs.python.org/3/library/optparse.html#adding-new-types
Adding new actionshttps://docs.python.org/3/library/optparse.html#adding-new-actions
Exceptionshttps://docs.python.org/3/library/optparse.html#exceptions
Migrating optparse code to argparsehttps://docs.python.org/3/howto/argparse-optparse.html
getpass — Portable password inputhttps://docs.python.org/3/library/getpass.html
Report a bughttps://docs.python.org/3/bugs.html
Show source https://github.com/python/cpython/blob/main/Doc/library/optparse.rst?plain=1
indexhttps://docs.python.org/3/genindex.html
moduleshttps://docs.python.org/3/py-modindex.html
nexthttps://docs.python.org/3/library/getpass.html
previoushttps://docs.python.org/3/howto/argparse-optparse.html
Pythonhttps://www.python.org/
3.14.2 Documentationhttps://docs.python.org/3/index.html
The Python Standard Libraryhttps://docs.python.org/3/library/index.html
Command-line interface librarieshttps://docs.python.org/3/library/cmdlinelibs.html
optparse — Parser for command line optionshttps://docs.python.org/3/library/optparse.html
Copyrighthttps://docs.python.org/3/copyright.html
History and Licensehttps://docs.python.org/license.html
Please donate.https://www.python.org/psf/donations/
Found a bughttps://docs.python.org/bugs.html
Sphinxhttps://www.sphinx-doc.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.