clap/examples/tutorial_builder/03_05_default_values.md

364 B

$ 03_05_default_values --help
A simple to use, efficient, and full-featured Command Line Argument Parser

Usage: 03_05_default_values[EXE] [PORT]

Arguments:
  [PORT]  [default: 2020]

Options:
  -h, --help     Print help information
  -V, --version  Print version information

$ 03_05_default_values
port: 2020

$ 03_05_default_values 22
port: 22