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 output printed twice #623

Closed
eukaryote opened this issue Aug 21, 2016 · 2 comments
Closed

Help output printed twice #623

eukaryote opened this issue Aug 21, 2016 · 2 comments
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-bug Category: Updating dependencies

Comments

@eukaryote
Copy link

I'm seeing help/usage info being printed twice. I tried cloning from master and checking one of the examples, and I see the same output there.

Platform is Linux (Ubuntu 16).

Steps to reproduce:

» uname -a
Linux myhost 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
/tmp » rustc -V
rustc 1.11.0 (9b21dcd6a 2016-08-15)
/tmp » cargo -V
cargo 0.12.0-nightly (6b98d1f 2016-07-04)
/tmp » git clone https://github.com/kbknapp/clap-rs.git && cd clap-rs
Cloning into 'clap-rs'...
/tmp/clap-rs(master) » cargo build --example 01a_quick_example
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling winapi v0.2.8
   Compiling unicode-width v0.1.3
   Compiling bitflags v0.7.0
   Compiling utf8-ranges v0.1.3
   Compiling ansi_term v0.8.0
   Compiling strsim v0.4.1
   Compiling winapi-build v0.1.1
   Compiling libc v0.2.15
   Compiling vec_map v0.6.0
   Compiling kernel32-sys v0.2.2
   Compiling regex-syntax v0.3.4
   Compiling memchr v0.1.11
   Compiling thread-id v2.0.0
   Compiling term_size v0.1.0
   Compiling thread_local v0.2.6
   Compiling clap v2.10.1 (file:///tmp/clap-rs)
   Compiling aho-corasick v0.5.2
   Compiling regex v0.1.73
/tmp/clap-rs(master) » ./target/debug/examples/01a_quick_example -h
MyApp 1.0
Kevin K. <[email protected]>
Does awesome things

USAGE:
    01a_quick_example [FLAGS] [OPTIONS] <output> [SUBCOMMAND]

FLAGS:
    -d               Turn debugging information on
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c, --config <FILE>    Sets a custom config file

ARGS:
    <output>    Sets an optional output file

SUBCOMMANDS:
    help    Prints this message or the help of the given subcommand(s)
    test    does testing thingsMyApp 1.0
Kevin K. <[email protected]>
Does awesome things

USAGE:
    01a_quick_example [FLAGS] [OPTIONS] <output> [SUBCOMMAND]

FLAGS:
    -d               Turn debugging information on
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c, --config <FILE>    Sets a custom config file

ARGS:
    <output>    Sets an optional output file

SUBCOMMANDS:
    help    Prints this message or the help of the given subcommand(s)
    test    does testing things
@kbknapp
Copy link
Member

kbknapp commented Aug 22, 2016

That's a regression! Should be fixed momentarily! Thanks!

@kbknapp kbknapp added C-bug Category: Updating dependencies P1: urgent A-help Area: documentation, including docs.rs, readme, examples, etc... labels Aug 22, 2016
@kbknapp
Copy link
Member

kbknapp commented Aug 22, 2016

This is fixed in #624 thanks again for filing this! 👍

@homu homu closed this as completed in a643fb2 Aug 22, 2016
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

No branches or pull requests

2 participants