mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
fix!: Generalize unicode feature
This flag was added in v3. This will allow us to put more related functionality behind it. BREAKING CHANGE: `unicode_help` was renamed to `unicode`.
This commit is contained in:
parent
e3b23929b3
commit
2bbe9123ee
3 changed files with 5 additions and 4 deletions
|
@ -8,7 +8,8 @@ TODO: `YamlLoader`
|
|||
|
||||
#### BREAKING CHANGES
|
||||
|
||||
|
||||
* **Renamed Features**
|
||||
* `unicode_help` to `unicode` to encompass more functionality
|
||||
|
||||
<a name="v3.0.0-beta.4"></a>
|
||||
## v3.0.0-beta.4 (2021-08-14)
|
||||
|
|
|
@ -88,7 +88,7 @@ default = [
|
|||
"color",
|
||||
"env",
|
||||
"suggestions",
|
||||
"unicode_help",
|
||||
"unicode",
|
||||
]
|
||||
debug = ["clap_derive/debug", "backtrace"] # Enables debug messages
|
||||
|
||||
|
@ -99,7 +99,7 @@ cargo = ["lazy_static"] # Disable if you're not using Cargo, enables Cargo-env-v
|
|||
color = ["atty", "termcolor"]
|
||||
env = [] # Use environment variables during arg parsing
|
||||
suggestions = ["strsim"]
|
||||
unicode_help = ["textwrap/unicode-width"] # Enable if any unicode in help message
|
||||
unicode = ["textwrap/unicode-width"] # support for unicode characters in arguments and help messages
|
||||
|
||||
# Optional
|
||||
wrap_help = ["terminal_size", "textwrap/terminal_size"]
|
||||
|
|
|
@ -475,7 +475,7 @@ Disabling optional features can decrease the binary size of `clap` and decrease
|
|||
* **color**: Turns on colored error messages. You still have to turn on colored help by setting `AppSettings::ColoredHelp`. (builds dependency `termcolor`)
|
||||
* **env**: Turns on the usage of environment variables during parsing.
|
||||
* **suggestions**: Turns on the `Did you mean '--myoption'?` feature for when users make typos. (builds dependency `strsim`)
|
||||
* **unicode_help**: Turns on support for unicode characters in help messages. (builds dependency `textwrap`)
|
||||
* **unicode**: Turns on support for unicode characters in arguments and help messages. (builds dependency `textwrap`)
|
||||
|
||||
To disable these, add this to your `Cargo.toml`:
|
||||
|
||||
|
|
Loading…
Reference in a new issue