CLI reference
Python Template CLI
This page is generated from the argparse parser. Change the parser in
the package's cli module, then run just docs-index.
python-template
This command takes no options of its own.
It dispatches to the subcommands below; run one of them.
python-template greet
Greet someone
Arguments
| Name | Value | Default | Description |
|---|---|---|---|
name |
str |
— | Name to greet |
Options
| Name | Value | Default | Description |
|---|---|---|---|
--greeting |
str |
Hello |
Greeting message (default: Hello) |
python-template calc
Perform calculations
Arguments
| Name | Value | Default | Description |
|---|---|---|---|
operation |
add | sub | mul | div |
— | — |
a |
float |
— | First number |
b |
float |
— | Second number |
Exit codes
| Code | Meaning |
|---|---|
0 |
Success. |
1 |
The command failed, or no command was given. |
2 |
Argument parsing failed (raised by argparse itself). |