zen_garden.cli.zen_example_cli¶
Functions
Entry point for the zen-example command-line interface. |
- zen_garden.cli.zen_example_cli.create_zen_example_cli()¶
Entry point for the zen-example command-line interface.
Creates a command line interface for downloading the dataset examples. The function parses a single required argument
--datasetthat specifies the name of the dataset to be downloaded. It then invokes the function functiondownload_example_datasetwith that argument.The
[project.scripts]section of the pyproject.toml declares that this function will be called whenever a user enterszen-exampleinto the command prompt. This function is therefore creates thezen-examplecommand line entry point.Examples
Basic usage in a command line prompt:
>>> zen-example --dataset="1_base_case"