echo is a basic command showing the usage of a single command with a handler, flags, and positional arguments.
go build
$ ./echo
Usage: ./echo [OPTIONS] COMMAND
Example command
Options:
-verbose
Enable verbose output
Subcommands:
echo
$ ./echo echo -h
Usage: ./echo echo [OPTIONS]
Options:
-case string
Case to use (upper, lower)
-verbose
Enable verbose output
$ ./echo echo -verbose -case upper Hello, World!
command echo called with case: upper
HELLO, WORLD!