Examples

Below is a collection of standalone examples of specific argument/CLI behavior one might want, with comparison examples of how it might be done in each of Click/Typer/Argparse, where relevant.

Please bring up any specific usage questions about comparisons between Cappa and other libraries as an issue or a discussion. The list below can and should grow in response to feature-comparisons which are not clear just from reading the cappa-specific documentation.

Custom Option Value Name

i.e. “FOO” in

$ prog --help
Usage: prog --some-arg FOO

Unbounded option arguments

i.e. prog --foo 1 2 3 4 ...

Interactive Prompt

$ prog
What's your name?: Ron

Subcommands

$ prog double 123
246
$ prog print --title bar
Bar

Console Output

$ prog World
Hello World