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

App::with_defaults() use clap-rs' version and authors not those of the Cargo file #684

Closed
RoPP opened this issue Oct 9, 2016 · 1 comment

Comments

@RoPP
Copy link

RoPP commented Oct 9, 2016

Cargo.toml :

[package]
name = "plop"
version = "0.1.0"
authors = ["Plop <[email protected]>"]

[dependencies]
clap = "2.9"

src/main.rs :

extern crate clap;
use clap::App;

fn main() {
    App::with_defaults("plop").get_matches();
}
cargo run -- --help
     Running `target/debug/plop --help`
Plop 2.14.0        <-------------------
Kevin K. <[email protected]>  <--------

USAGE:
    plop

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
@kbknapp
Copy link
Member

kbknapp commented Oct 9, 2016

Thanks for taking the time to do a detailed write up! I'm aware of this issue, it was reported in #638 as well. Unfortunately I haven't been able to put much time into solving it. Perhaps using $crate in the macros would work? I'll have to do some testing as I'm not a macro guru by any means.

I'm going to close this issue, but copy over your detailed comments to #638.

@kbknapp kbknapp closed this as completed Oct 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants