Standard library Python argparse examples with subparsers, choices, actions, and nested command patterns. Use when building Python CLIs without external dependencies, implementing argument parsing, creating subcommands, or when user mentions argparse, standard library CLI, subparsers, argument validation, or nested commands.
Limited to specific tools
Additional assets for this skill
This skill is limited to using the following tools:
examples/advanced-parsing.mdexamples/basic-usage.mdexamples/nested-commands.mdexamples/subcommands.mdexamples/validation-patterns.mdscripts/convert-to-click.shscripts/generate-parser.shscripts/test-parser.shscripts/validate-parser.shtemplates/argparse-to-commander.tstemplates/argument-groups.pytemplates/basic-parser.pytemplates/boolean-flags.pytemplates/choices-validation.pytemplates/custom-actions.pytemplates/mutually-exclusive.pytemplates/nested-subparser.pytemplates/subparser-pattern.pytemplates/type-coercion.pytemplates/variadic-args.py