Function print_usage

Source
pub fn print_usage(program: &str, opts: Options) -> !
Expand description

Displays program usage information and exits.

Formats and prints the usage information using the provided program name and options configuration.

§Arguments

  • program - Name of the program to show in usage
  • opts - Configured program options

§Exits

Always exits with status code 0 after displaying usage.