Skip to content

Commit 938f7f0

Browse files
committed
docs(README.md): adds new features to what's new list
1 parent 1528038 commit 938f7f0

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,22 @@ It is a simple to use, efficient, and full featured library for parsing command
88

99
## What's New
1010

11-
If you're already familiar with `clap` but just want to see some new highlights as of **1.0.0-beta**
11+
If you're already familiar with `clap` but just want to see some new highlights as of **1.0.0**
12+
13+
* **Args can now be parsed from arbitrary locations!** This makes testing immensly easier. Thanks to [cristicbz](https://github.com/cristicbz) for the idea!
14+
15+
Example...
16+
17+
```rust
18+
let v = vec!["my_prog", "some_arg", "-f"];
19+
let m = App::new("my_prog")
20+
// Normal configuration goes here...
21+
.get_matches_from(v);
22+
23+
// Use matches like normal...
24+
```
25+
26+
As of **1.0.0-beta**
1227

1328
* **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)
1429
* **Can fully override help** - This allows you fully override the auto-generated help if you so choose

0 commit comments

Comments
 (0)