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

Issue 421, 427, and 429 #425

Merged
merged 8 commits into from
Feb 19, 2016
Merged

Issue 421, 427, and 429 #425

merged 8 commits into from
Feb 19, 2016

Conversation

kbknapp
Copy link
Member

@kbknapp kbknapp commented Feb 15, 2016

This PR adds better examples for Arg methods as well as


Copied from #421

  • short
  • long
  • help
  • required
  • conflicts_with
  • conflicts_with_all
  • overrides_with
  • overrides_with_all
  • requires
  • requires_all
  • takes_value
  • index
  • multiple
  • global
  • empty_values
  • hidden
  • possible_values
  • possible_value
  • group
  • number_of_values
  • validator
  • max_values
  • min_values
  • use_delimiter
  • value_delimiter
  • value_names
  • value_name
  • default_value
  • next_line_help

@yo-bot
Copy link

yo-bot commented Feb 15, 2016

r? @sru

(yo-bot has picked a reviewer for you, use r? to override)

Adds a setting for both `AppSettings` and an `Arg` method which allows
placing the help text for a particular argument (or all arguments via
the `AppSettings`) on the line after the argument itself and indented
once.

This is useful for when a single argument may have a very long
invocation flag, or many value names which throws off the alignment of
al other arguments. On a small terminal this can be terrible. Placing
the text on the line below the argument solves this issue. This is also
how many of the GNU utilities display their help strings for individual
arguments.

The final caes where this can be hepful is if the argument has a very
long or detailed and complex help string that will span multiple lines.
It can be visually more appealing and easier to read when those lines
don't wrap as frequently since there is more space on the next line.

Closes #427
@kbknapp kbknapp force-pushed the issue-421 branch 2 times, most recently from e03f647 to ad79d08 Compare February 18, 2016 08:03
@kbknapp kbknapp changed the title Issue 421 Issue 421 and 427 Feb 18, 2016
@kbknapp kbknapp force-pushed the issue-421 branch 3 times, most recently from e0dae2c to 6942ede Compare February 18, 2016 11:06
@kbknapp kbknapp changed the title Issue 421 and 427 Issue 421, 427, and 429 Feb 19, 2016
@kbknapp
Copy link
Member Author

kbknapp commented Feb 19, 2016

@homu r+

@homu
Copy link
Contributor

homu commented Feb 19, 2016

📌 Commit d0c956c has been approved by kbknapp

@homu
Copy link
Contributor

homu commented Feb 19, 2016

⌛ Testing commit d0c956c with merge 1be8d4d...

homu added a commit that referenced this pull request Feb 19, 2016
Issue 421, 427, and 429

This PR adds better examples for `Arg` methods as well as

* implements support for displaying the help on the next line (#427)
* Clarifies `AppSettings` propagation rules (#429)
* Fixes failing clippy lints
* Moves github specific files to a `.github` directory

----

Copied from #421

- [x] `short`
- [x] `long`
- [x] `help`
- [x] `required`
- [x] `conflicts_with`
- [x] `conflicts_with_all`
- [x] `overrides_with`
- [x] `overrides_with_all`
- [x] `requires`
- [x] `requires_all`
- [x] `takes_value`
- [x] `index`
- [x] `multiple`
- [x] `global`
- [x] `empty_values`
- [x] `hidden`
- [x] `possible_values`
- [x] `possible_value`
- [x] `group`
- [x] `number_of_values`
- [x] `validator`
- [x] `max_values`
- [x] `min_values`
- [x] `use_delimiter`
- [x] `value_delimiter`
- [x] `value_names`
- [x] `value_name`
- [x] `default_value`
- [x] `next_line_help`
@homu
Copy link
Contributor

homu commented Feb 19, 2016

☀️ Test successful - status

@homu
Copy link
Contributor

homu commented Feb 19, 2016

👀 Test was successful, but fast-forwarding failed: 422 Required status check "continuous-integration/appveyor/pr" is pending

@Vinatorul
Copy link
Contributor

@homu retry

homu added a commit that referenced this pull request Feb 19, 2016
Issue 421, 427, and 429

This PR adds better examples for `Arg` methods as well as

* implements support for displaying the help on the next line (#427)
* Clarifies `AppSettings` propagation rules (#429)
* Fixes failing clippy lints
* Moves github specific files to a `.github` directory

----

Copied from #421

- [x] `short`
- [x] `long`
- [x] `help`
- [x] `required`
- [x] `conflicts_with`
- [x] `conflicts_with_all`
- [x] `overrides_with`
- [x] `overrides_with_all`
- [x] `requires`
- [x] `requires_all`
- [x] `takes_value`
- [x] `index`
- [x] `multiple`
- [x] `global`
- [x] `empty_values`
- [x] `hidden`
- [x] `possible_values`
- [x] `possible_value`
- [x] `group`
- [x] `number_of_values`
- [x] `validator`
- [x] `max_values`
- [x] `min_values`
- [x] `use_delimiter`
- [x] `value_delimiter`
- [x] `value_names`
- [x] `value_name`
- [x] `default_value`
- [x] `next_line_help`
homu added a commit that referenced this pull request Feb 19, 2016
Issue 421, 427, and 429

This PR adds better examples for `Arg` methods as well as

* implements support for displaying the help on the next line (#427)
* Clarifies `AppSettings` propagation rules (#429)
* Fixes failing clippy lints
* Moves github specific files to a `.github` directory

----

Copied from #421

- [x] `short`
- [x] `long`
- [x] `help`
- [x] `required`
- [x] `conflicts_with`
- [x] `conflicts_with_all`
- [x] `overrides_with`
- [x] `overrides_with_all`
- [x] `requires`
- [x] `requires_all`
- [x] `takes_value`
- [x] `index`
- [x] `multiple`
- [x] `global`
- [x] `empty_values`
- [x] `hidden`
- [x] `possible_values`
- [x] `possible_value`
- [x] `group`
- [x] `number_of_values`
- [x] `validator`
- [x] `max_values`
- [x] `min_values`
- [x] `use_delimiter`
- [x] `value_delimiter`
- [x] `value_names`
- [x] `value_name`
- [x] `default_value`
- [x] `next_line_help`
@homu
Copy link
Contributor

homu commented Feb 19, 2016

⌛ Testing commit d0c956c with merge 27d08bf...

@homu
Copy link
Contributor

homu commented Feb 19, 2016

☀️ Test successful - status

@homu homu merged commit d0c956c into master Feb 19, 2016
@kbknapp kbknapp deleted the issue-421 branch February 19, 2016 15:46
@kbknapp kbknapp mentioned this pull request Feb 19, 2016
29 tasks
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.

None yet

5 participants