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

Remove {n} support #1810

Merged
merged 1 commit into from
Apr 12, 2020
Merged

Remove {n} support #1810

merged 1 commit into from
Apr 12, 2020

Conversation

pksunkara
Copy link
Member

No description provided.

Copy link
Contributor

@CreepySkeleton CreepySkeleton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 12, 2020

@bors bors bot merged commit 7788268 into master Apr 12, 2020
@bors bors bot deleted the newline branch April 12, 2020 03:27
@epage
Copy link
Member

epage commented Dec 20, 2021

@pksunkara what was the motivation for this change? Solving a similar problem came up in #3198 and wanting to learn from the past on this.

@pksunkara
Copy link
Member Author

It was deprecated in v2.11 and was planned to be removed in v3. \n is the replacement which make sense for a string.

c5a2b35

@epage epage mentioned this pull request Dec 30, 2021
epage added a commit to epage/clap that referenced this pull request Dec 30, 2021
This reverts commit 333b993.

PR clap-rs#1810's motivation was effectively "this is redundant with `\n`".
That is a fine motivation.  Unfortunately, we don't have a way to force
a hard break in `clap_derive`.  clap-rs#2389 should help with this eventually
but we shouldn't hold up 3.0 to get that ready.  So in the mean time, we
are restoring `{n}`.

We have clap-rs#3230 for tracking the re-removal of it.
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.

3 participants