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 name is not used in help #368

Closed
ghost opened this issue Dec 24, 2015 · 1 comment
Closed

App name is not used in help #368

ghost opened this issue Dec 24, 2015 · 1 comment
Labels
A-builder Area: Builder API C-bug Category: Updating dependencies
Milestone

Comments

@ghost
Copy link

ghost commented Dec 24, 2015

The first line of help should be the app name but it's always the binary name (whether bin_name is
configured or not.)

For example, when this app is compiled to mraa

extern crate clap;

use clap::App;

fn main() {
    App::new("My-Really-Awesome-App").get_matches();

    println!("Hello, world!");
}

mraa --help prints

mraa 

USAGE:
    mraa [FLAGS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

whereas it should print

My Really Awesome App

USAGE:
    mraa [FLAGS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
@Vinatorul Vinatorul added C-bug Category: Updating dependencies P1: urgent A-builder Area: Builder API labels Dec 24, 2015
@kbknapp
Copy link
Member

kbknapp commented Dec 24, 2015

Thanks for filing this, I agree and guess I've never really thought about it too much before since the binary name is usually the same as the app name for what I've made 😄

We should have this fixed soon 👍

@kbknapp kbknapp added this to the 1.5.5 milestone Dec 24, 2015
@kbknapp kbknapp closed this as completed in c9bf7e4 Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-builder Area: Builder API C-bug Category: Updating dependencies
Projects
None yet
Development

No branches or pull requests

2 participants