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
Copy file name to clipboardExpand all lines: README.md
+8-18
Original file line number
Diff line number
Diff line change
@@ -8,24 +8,14 @@ It is a simple to use, efficient, and full featured library for parsing command
8
8
9
9
## What's New
10
10
11
-
If you're already familiar with `clap` but just want to see some new highlights as of **1.0.3**
12
-
13
-
***Errors are written to stderr** - In order to follow good standards, errors are now written to stderr
14
-
***Deprecated Functions Removed** - In an effort to start a 1.x all deprecated functions have been removed, see the deprecations sections below to update your code (very minimal)
15
-
***Can fully override help** - This allows you fully override the auto-generated help if you so choose
16
-
***Can wait for user input on error** - This is helpful mainly on Windows if a user mistakenly opens your application via double-click, or you'd like to provide a GUI shortcut to run your application
17
-
***Args can now be parsed from arbitrary locations** This makes testing immensly easier. Thanks to [cristicbz](https://github.com/cristicbz) for the idea!
18
-
19
-
Example...
20
-
21
-
```rust
22
-
letv=vec!["my_prog", "some_arg", "-f"];
23
-
letm=App::new("my_prog")
24
-
// Normal configuration goes here...
25
-
.get_matches_from(v);
26
-
27
-
// Use matches like normal...
28
-
```
11
+
If you're already familiar with `clap` but just want to see some new highlights as of **1.1.0**
12
+
13
+
***Newlines properly aligned in help strings!** - Allows one to specify a newline in long help strings. **Note:** Specify the newlines in help strings via `{n}` and *not*`\n` due to how `clap` handles help parsing.
14
+
***Unified Help Format** - This is cosmetic only, but allows a help message formated similiar to `docopt` or `getopts` where what `clap` calls "options" and "flags" are combined into a single group (and still properly aligned and formatted)
15
+
***Can propogate versions through subcommands auto-matically** - This allows all subcommands to handle `--version` or `-V` with the same version as the parent application
16
+
***Can specify that subcommands disable version** - Can now say `--version` and `-V` won't be valid flags for subcommands
17
+
***Big performacne improvement when printing help messages** - While printing help messages wasn't slow before, it's now super fast ;)
18
+
***PSA: Deprecated Functions Removed as of 1.0** - In an effort to start a 1.x all deprecated functions have been removed, see the deprecations sections below to update your code (very minimal)
29
19
30
20
For full details see the [changelog](https://github.com/kbknapp/clap-rs/blob/master/CHANGELOG.md)
0 commit comments