Examples
Common patterns and living examples in the repo.
Examples
All examples are executable and live in examples/.
Run with the editable install:
uv run --with-editable . python examples/basic.py --help
uv run --with-editable . python examples/demo.pyNotable Examples
basic.py— minimal cli + commandbasic_super.py— using subgroupschain_demo.py— pipeline examplegroup_option_demo.py/group_arg_demo.py— inheritanceall_themes_demo.py— theme switcher (see Themes for full color theme outputs)theme_demo.py,github_theme_demo.py,monokai_theme_demo.pyvalidation_error_demo.py— error casesfix_*.py— demonstrations of fixes / edge cases
See scripts/demos.sh and scripts/demo.sh for batch running.
The test_examples.py ensures they all still parse and execute cleanly.
Theme demo outputs are captured using shellplot (PNG for color fidelity; see Themes).