epage / clapng

A full featured, fast Command Line Argument Parser for Rust
docs.rs/clap
Apache License 2.0
0 stars 0 forks source link

Missing trailing newline on help with disabled flag and subcommand #208

Open epage opened 2 years ago

epage commented 2 years ago

Issue by jonathanmorley Friday Sep 24, 2021 at 16:14 GMT Originally opened as https://github.com/clap-rs/clap/issues/2787


Please complete the following tasks

Rust Version

1.54.0

Clap Version

master

Minimal reproducible code

fn main() {
    let app = App::new("foo")
        .subcommand(App::new("sub"))
        .setting(AppSettings::DisableHelpFlag)
        .setting(AppSettings::DisableHelpSubcommand);
}

Steps to reproduce the bug with the above code

cargo run -- help

Actual Behaviour

The help message does not contain a trailing newline

Expected Behaviour

The help message should contain a trailing newline

Additional Context

https://github.com/clap-rs/clap/pull/2786/files#r715734272

Debug Output

No response