command_with_arg

Example of the component espressif/esp_cli_commands v0.1.1
# command_with_arg

This example demonstrates static registration of a CLI command (`math_op`) that performs basic math operations (add, sub, mul, div) on two arguments, with error handling for invalid input and division by zero.

To create a project from this example, run:

idf.py create-project-from-example "espressif/esp_cli_commands=0.1.1:command_with_arg"

or download archive (~2.65 KB)