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

Fix typos #531

Merged
merged 1 commit into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ fn main() {

### Don't special case `u64` by [@SergioBenitez](https://github.com/SergioBenitez)

If you are using a `u64` in your struct to get the number of occurence of a flag, you should now add `parse(from_occurrences)` on the flag.
If you are using a `u64` in your struct to get the number of occurrence of a flag, you should now add `parse(from_occurrences)` on the flag.

For example
```rust
Expand All @@ -470,11 +470,11 @@ There was no reason to take the argument by value. Most of the StructOpt users w

### Fail if attributes are not used by [@TeXitoi](https://github.com/TeXitoi)

StructOpt was quite fuzzy in its attribute parsing: it was only searching for interresting things, e. g. something like `#[structopt(foo(bar))]` was accepted but not used. It now fails the compilation.
StructOpt was quite fuzzy in its attribute parsing: it was only searching for interesting things, e. g. something like `#[structopt(foo(bar))]` was accepted but not used. It now fails the compilation.

You should have nothing to do here. This breaking change may highlight some missuse that can be bugs.
You should have nothing to do here. This breaking change may highlight some misuse that can be bugs.

In future versions, if there is cases that are not highlighed, they will be considerated as bugs, not breaking changes.
In future versions, if there is cases that are not highlighted, they will be considerated as bugs, not breaking changes.

### Use `raw()` wrapping instead of `_raw` suffixing by [@TeXitoi](https://github.com/TeXitoi)

Expand Down Expand Up @@ -522,7 +522,7 @@ You have to change `foo_raw = "bar", baz_raw = "foo"` by `raw(foo = "bar", baz =

# v0.1.1 (2017-09-22)

* Better formating of multiple authors by [@killercup](https://github.com/killercup)
* Better formatting of multiple authors by [@killercup](https://github.com/killercup)

# v0.1.0 (2017-07-17)

Expand Down
2 changes: 1 addition & 1 deletion tests/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ fn options() {
}

#[test]
fn empy_default_value() {
fn empty_default_value() {
#[derive(StructOpt, PartialEq, Debug)]
struct Opt {
#[structopt(short, default_value = "")]
Expand Down
2 changes: 1 addition & 1 deletion tests/rename_all_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn overridable() {
be_nice: String,

#[structopt(rename_all_env = "pascal", env)]
be_agressive: String,
be_aggressive: String,
}

let help = get_help::<BehaviorModel>();
Expand Down