You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***AppSettings:** adds new setting `AppSettings::AllowNegativeNumbers` which functions like `AllowLeadingHyphen` except only allows undefined negative numbers to pass parsing.
68
68
* Stabilize `clap_app!` macro (i.e. no longer need to use `unstable` feature)
@@ -104,7 +104,7 @@ Here's the highlights from v2.0.0 to v2.19.1
104
104
* Allows adding multiple ArgGroups per Arg
105
105
***Global Settings:** One can now set an `AppSetting` which is propogated down through child subcommands
106
106
***Terminal Wrapping:** Allows wrapping at specified term width (Even on Windows!) (can now set an absolute width to "smart" wrap at)
107
-
***SubCommands/Aliases:** adds support for visible aliases for subcommands (i.e. aliases that are dipslayed in the help message)
107
+
***SubCommands/Aliases:** adds support for visible aliases for subcommands (i.e. aliases that are displayed in the help message)
108
108
***Subcommands/Aliases:** when viewing the help of an alias, it now display help of the aliased subcommand
109
109
* Adds new setting to stop delimiting values with `--` or `AppSettings::TrailingVarArg`
110
110
* Subcommands now support aliases - think of them as hidden subcommands that dispatch to said subcommand automatically
@@ -504,7 +504,7 @@ Then run `cargo build` or `cargo update && cargo build` for your project.
504
504
505
505
* **"suggestions"**: Turns on the `Did you mean '--myoption'?` feature for when users make typos. (builds dependency `strsim`)
506
506
* **"color"**: Turns on colored error messages. This feature only works on non-Windows OSs. (builds dependency `ansi-term` and `libc`)
507
-
* **"wrap_help"**: Wraps the help at the actual terminal width when available, instead of 120 chracters. (builds dependency `term_size`, and `libc`)
507
+
* **"wrap_help"**: Wraps the help at the actual terminal width when available, instead of 120 characters. (builds dependency `term_size`, and `libc`)
508
508
509
509
To disable these, add this to your `Cargo.toml`:
510
510
@@ -563,14 +563,14 @@ Please read [CONTRIBUTING.md](.github/CONTRIBUTING.md) before you start contribu
563
563
564
564
### Testing Code
565
565
566
-
To test with all features both enabled and disabled, you can run theese commands:
566
+
To test with all features both enabled and disabled, you can run these commands:
567
567
568
568
```sh
569
569
$ cargo test --no-default-features
570
570
$ cargo test --features "yaml unstable"
571
571
```
572
572
573
-
Alternatively, if you have [`just`](https://github.com/casey/just) installed you can run the prebuilt recipies. *Not* using `just` is prfeclty fine as well, it simply bundles commands automatically.
573
+
Alternatively, if you have [`just`](https://github.com/casey/just) installed you can run the prebuilt recipes. *Not* using `just` is perfectly fine as well, it simply bundles commands automatically.
574
574
575
575
For example, to test the code, as above simply run:
576
576
@@ -640,7 +640,7 @@ Because `clap` takes SemVer and compatibility seriously, this is the official po
640
640
641
641
`clap`will pin the minimum required version of Rust to the CI builds. Bumping the minimum version of Rust is considered a minor breaking change, meaning *at a minimum* the minor version of `clap` will be bumped.
642
642
643
-
In order to keep from being suprised of breaking changes, it is **highly** recommended to use the `~major.minor.patch` style in your `Cargo.toml` only if you wish to target a version of Rust that is *older* than current stable minus two releases:
643
+
In order to keep from being surprised of breaking changes, it is **highly** recommended to use the `~major.minor.patch` style in your `Cargo.toml` only if you wish to target a version of Rust that is *older* than current stable minus two releases:
644
644
645
645
```toml
646
646
[dependencies]
@@ -651,14 +651,14 @@ This will cause *only* the patch version to be updated upon a `cargo update` cal
651
651
652
652
#### Minimum Version of Rust
653
653
654
-
`clap`will officially support current stable Rust, minus two releases, but may work with prior releases as well. For example, current stable Rust at the time of this writing is 1.13.0, meaning `clap` is garunteed to compile with 1.11.0 and beyond.
655
-
At the 1.14.0 release, `clap` will be garunteed to compile with 1.12.0 and beyond, etc.
654
+
`clap`will officially support current stable Rust, minus two releases, but may work with prior releases as well. For example, current stable Rust at the time of this writing is 1.13.0, meaning `clap` is guaranteed to compile with 1.11.0 and beyond.
655
+
At the 1.14.0 release, `clap` will be guaranteed to compile with 1.12.0 and beyond, etc.
656
656
657
657
Upon bumping the minimum version of Rust (assuming it's within the stable-2 range), it *must* be clearly annotated in the `CHANGELOG.md`
658
658
659
659
#### Breaking Changes
660
660
661
-
`clap` takes a similar policy to Rust and will bump the major veresion number upon breaking changes with only the following exceptions:
661
+
`clap` takes a similar policy to Rust and will bump the major version number upon breaking changes with only the following exceptions:
662
662
663
663
* The breaking change is to fix a security concern
664
664
* The breaking change is to be fixing a bug (i.e. relying on a bug as a feature)
0 commit comments