
Parser for command-line options, arguments and subcommands
1 day ago · ArgumentParser objects associate command-line arguments with actions. These actions can do just about anything with the command-line arguments associated with them, …
Argparse Tutorial — Python 3.13.3 documentation
1 day ago · 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 …
1. Command line and environment — Python 3.13.3 documentation
When called with a file name argument or with a file as standard input, it reads and executes a script from that file. When called with a directory name argument, it reads and executes an …
2. Using the Python Interpreter — Python 3.13.3 documentation
1 day ago · A second way of starting the interpreter is python-c command [arg]..., which executes the statement(s) in command, analogous to the shell’s -c option. Since Python statements …
optparse — Parser for command line options - Python
2 days ago · optparse uses a more declarative style of command-line parsing: you create an instance of OptionParser, populate it with options, and parse the command line. optparse …
4. Using Python on Windows — Python 3.13.3 documentation
1 day ago · In most cases, a custom launcher should simply be able to call Py_Main with a hard-coded command line. The simpler approach is to provide a batch file or generated shortcut …
Migrating optparse code to argparse — Python 3.13.3 …
3 days ago · Replace strings with implicit arguments such as %default or %prog with the standard Python syntax to use dictionaries to format strings, that is, %(default)s and %(prog)s. Replace …
pdb — The Python Debugger — Python 3.13.3 documentation
2 days ago · Changed in version 3.3: Tab-completion via the readline module is available for commands and command arguments, e.g. the current global and local names are offered as …
Command Line Interface Libraries — Python 3.13.3 documentation
1 day ago · 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 …
getopt — C-style parser for command line options - Python
1 day ago · This module helps scripts to parse the command line arguments in sys.argv. It supports the same conventions as the Unix getopt() function (including the special meanings …