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, author and about are not wrapped #777

Closed
malbarbo opened this issue Dec 14, 2016 · 2 comments
Closed

App name, author and about are not wrapped #777

malbarbo opened this issue Dec 14, 2016 · 2 comments
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-enhancement Category: Raise on the bar on expectations
Milestone

Comments

@malbarbo
Copy link
Contributor

Rust Version

rustc 1.15.0-nightly (1c448574b 2016-11-28)

Affected Version of clap

2.19.2

Expected Behavior Summary

The text should be wrapped at width 35.

Actual Behavior Summary

The app name, author and about text are not wrapped

A app with a very long long long name 1.0
Some Very Long Name <email@server.com>
Show how the about text is not wrapped

USAGE:
    x

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

Steps to Reproduce the issue

Run the code:

extern crate clap;

use clap::App;

fn main() {
    App::new("A app with a very long long long name")
        .version("1.0")
        .author("Some Very Long Name <email@server.com>")
        .about("Show how the about text is not wrapped")
        .set_term_width(35)
        .get_matches();
}
@kbknapp
Copy link
Member

kbknapp commented Dec 18, 2016

Ah thanks for pointing this out, I think author, and version got left out by mistake!

@kbknapp kbknapp added A-help Area: documentation, including docs.rs, readme, examples, etc... D: easy C-bug Category: Updating dependencies C-enhancement Category: Raise on the bar on expectations and removed C-bug Category: Updating dependencies labels Dec 18, 2016
@kbknapp
Copy link
Member

kbknapp commented Dec 18, 2016

Also, just a heads up; due to the holidays it may be a week or so before I can get this knocked out. But It'll be fixed soon ;)

@kbknapp kbknapp added this to the 2.20.0 milestone Jan 2, 2017
@homu homu closed this as completed in ad4691b Jan 3, 2017
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-enhancement Category: Raise on the bar on expectations
Projects
None yet
Development

No branches or pull requests

2 participants