Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help_heading doesn't seem to work #1955

Closed
2 tasks done
CreepySkeleton opened this issue May 31, 2020 · 0 comments · Fixed by #1958
Closed
2 tasks done

help_heading doesn't seem to work #1955

CreepySkeleton opened this issue May 31, 2020 · 0 comments · Fixed by #1958
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-bug Category: Updating dependencies
Milestone

Comments

@CreepySkeleton
Copy link
Contributor

Make sure you completed the following tasks

Initially reported as #1954

Code

use clap::{App, Arg};

fn main() {
    App::new("app")
        .arg(Arg::from("--flag").help_heading(Some("CUSTOM")))
        .print_help()
        .unwrap();
}

Steps to reproduce the issue

  1. Run cargo run

Version

  • Rust: 1.43.1
  • Clap: 3.0.0-beta.1

Actual Behavior Summary

app 

USAGE:
    app [FLAGS]

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

Expected Behavior Summary

app 

USAGE:
    app [FLAGS]

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

CUSTOM:
    --flag

Additional context

help_heading doesn't seem to work at all. I checked flags, options and positional args, incuding multiple options and combinations.

@CreepySkeleton CreepySkeleton added C-bug Category: Updating dependencies A-help Area: documentation, including docs.rs, readme, examples, etc... P2: need to have labels May 31, 2020
@CreepySkeleton CreepySkeleton added this to the 3.1 milestone May 31, 2020
@bors bors bot closed this as completed in #1958 Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-bug Category: Updating dependencies
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant