OptionParsing¶
Legacy Wiki Page
This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.
1. Builtin Tools¶
Overview of Python modules for option parsing
2. External tools¶
More:
3. The goal of option parsing¶
The option parsing goal can be split in two parts:
identifying the command user needs to execute
changing configuration for the program
For the first part, it will be good if option parsing library could handle ‘subcommands’. It is known that ‘argparse’ can do this and ‘optparse’ cannot. ‘docopt’ probably handles this transparently.
For the second thing there should be some strategy to choose how (and which) options are merged into configuration to make the process of program configuration easy for the user and occasional patch contributors.