exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
Sphinx themes that support both light and dark modes (e.g. Furo, pydata-sphinx-theme or
sphinx-book-theme) switch modes in the browser, so the mode cannot be known when the docs are
built. Use the typer:dark-theme option to render the help for both modes, the rendering
matching the active mode is shown and the other is hidden:
..typer:: examples.example:app
:theme: light
:dark-theme: dark
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
exampleUsage: example [OPTIONS] {arg}:<one|two> COMMAND [ARGS]...This is the callback function.╭─ Arguments ───────────────────────────────────────────────────╮│*arg<one|two>An argument.[required]│╰───────────────────────────────────────────────────────────────╯╭─ Options ─────────────────────────────────────────────────────╮│--flag--no-flagFlagged.[default: no-flag]││--switch-sSwitch.││--helpShow this message and exit.│╰───────────────────────────────────────────────────────────────╯╭─ Commands ────────────────────────────────────────────────────╮│fooThis is the foo command. ││barThis is the bar command. │╰───────────────────────────────────────────────────────────────╯
To do this for every directive set typer_dark_theme in your conf.py. Toggle this
page’s theme to see the rendering above switch.