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

Do not reset wrap for commands #392

Merged
merged 1 commit into from
Feb 17, 2016
Merged

Do not reset wrap for commands #392

merged 1 commit into from
Feb 17, 2016

Conversation

nexdrew
Copy link
Member

@nexdrew nexdrew commented Feb 17, 2016

Preserve the "global" wrap() value so that usage width is consistent for commands that do not wish to override it (particularly when using an options object instead of a builder function). Commands that wish to override it may still do so.

Includes a test for each scenario.

@nexdrew nexdrew changed the title do not reset wrap for commands Do not reset wrap for commands Feb 17, 2016
@bcoe
Copy link
Member

bcoe commented Feb 17, 2016

wonderful :shipit:

nexdrew added a commit that referenced this pull request Feb 17, 2016
@nexdrew nexdrew merged commit e0d55f1 into yargs:master Feb 17, 2016
@nexdrew nexdrew deleted the make-wrap-global branch February 17, 2016 05:03
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

Successfully merging this pull request may close these issues.

2 participants