Argparse Tutorial — Python 3. 13. 5 documentation The argparse module allows you to specify custom type converters for your command-line arguments This allows you to modify user input before it’s stored in the argparse Namespace
Command Line Interface Libraries — Python 3. 13. 5 documentation The modules described in this chapter assist with implementing command line and terminal interfaces for applications Here’s an overview: argparse — Parser for command-line options, arguments and s
Migrating optparse code to argparse — Python 3. 13. 5 documentation Migrating optparse code to argparse ¶ The argparse module offers several higher level features not natively provided by the optparse module, including: Handling positional arguments Supporting subcommands Allowing alternative option prefixes like + and Handling zero-or-more and one-or-more style arguments Producing more informative usage
What’s new in Python 3. 14 — Python 3. 15. 0a0 documentation The default value of the program name for argparse ArgumentParser now reflects the way the Python interpreter was instructed to find the __main__ module code (Contributed by Serhiy Storchaka and Alyssa Coghlan in gh-66436 )