Artifact Content
Not logged in

Artifact e7755176c98ca214624b2626983f1349cfa18fd3:

use cargo::util::{CliResult, CliError, Config, human};

pub struct Options;

pub const USAGE: &'static str = "
Get some help with a cargo command.

    cargo help <command>
    cargo help -h | --help

    -h, --help          Print this message

pub fn execute(_: Options, _: &Config) -> CliResult {
    // This is a dummy command just so that `cargo help help` works.
    // The actual delegation of help flag to subcommands is handled by the
    // cargo command.
    Err(CliError::new(human("help command should not be executed directly"), 101))