Replies: 1 comment 1 reply
-
I had thought this came up elsewhere but not finding it atm. The closest I can find is recently adding some Looks like this worked correctly in clap v2 #!/usr/bin/env nargo
---
[dependencies]
clap = "2"
---
fn main() {
let matches = clap::App::new("foo")
.arg(
clap::Arg::with_name("two")
.long("two")
.help("two")
.required(true)
.next_line_help(true),
)
.arg(
clap::Arg::with_name("one")
.long("one")
.help("one")
.required(true),
)
.get_matches();
} $ ./clap-6139.rs -h
USAGE:
clap-6139 [FLAGS] --one --two
FLAGS:
-h, --help Prints help information
--one one
--two
two
-V, --version Prints version information With it broken since 3.0.0 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Arg::next_line_help(true)
causes all arguments' helps to be displayed on the next line. In other words, asCommand::next_line_help
is supposed to do. What am i doing wrong?For reference this is the code:
Beta Was this translation helpful? Give feedback.
All reactions