Skip to content

help_heading and clap_derive #1954

Answered by CreepySkeleton
vorot93 asked this question in Q&A
Discussion options

You must be logged in to vote

This is a bug in clap itself, not derive:

use clap::{App, Arg};

fn main() {
    App::new("app")
        .arg(Arg::from("--time").help_heading(Some("a")))
        .get_matches_from(&["test", "--help"]);
}
app 

USAGE:
    test [FLAGS]

FLAGS:
    -h, --help       Prints help information
        --time       
    -V, --version    Prints version information

I took liberty to report it as #1955

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@vorot93
Comment options

@pksunkara
Comment options

@vorot93
Comment options

@pksunkara
Comment options

@vorot93
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by pksunkara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants