Skip to main content

usage_json_error

Function usage_json_error 

Source
pub fn usage_json_error(
    error: &Error,
    argv: &[String],
    program: &str,
) -> Option<String>
Expand description

The json_error line of a usage error clap reports for argv (no program name) run as program: its message without error: , on one line (a list clap names under it joined on, each tip after it), and the task’s usage (jubarte read [OPTIONS] <FILE>; clap’s own usage, which names the flags given, when no task is named), a line per form. None for help and version, which are not errors.