mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
parent
bf34c04060
commit
f7e2fbf150
2 changed files with 3 additions and 2 deletions
|
@ -454,7 +454,7 @@ impl<'help, 'app, 'parser, 'writer> Help<'help, 'app, 'parser, 'writer> {
|
||||||
}
|
}
|
||||||
self.none(part)?;
|
self.none(part)?;
|
||||||
}
|
}
|
||||||
if !prevent_nlh && !help.contains('\n') && (nlh || self.force_next_line) {
|
if !prevent_nlh && (nlh || self.force_next_line) {
|
||||||
self.none("\n")?;
|
self.none("\n")?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
@ -269,6 +269,7 @@ FLAGS:
|
||||||
-h, --help
|
-h, --help
|
||||||
Prints help
|
Prints help
|
||||||
information
|
information
|
||||||
|
|
||||||
-V, --version
|
-V, --version
|
||||||
Prints
|
Prints
|
||||||
version
|
version
|
||||||
|
@ -354,7 +355,6 @@ FLAGS:
|
||||||
Prints version
|
Prints version
|
||||||
information";
|
information";
|
||||||
|
|
||||||
// FIXME: #1642 This should have an empty line before `-h, --help`.
|
|
||||||
static ISSUE_1642: &str = "prog
|
static ISSUE_1642: &str = "prog
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
|
@ -366,6 +366,7 @@ FLAGS:
|
||||||
with only valid keys and may not contain other nonsense
|
with only valid keys and may not contain other nonsense
|
||||||
that cannot be read by this program. Obviously I'm going on
|
that cannot be read by this program. Obviously I'm going on
|
||||||
and on, so I'll stop now.
|
and on, so I'll stop now.
|
||||||
|
|
||||||
-h, --help
|
-h, --help
|
||||||
Prints help information
|
Prints help information
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue