Skip to content

Commit afe872a

Browse files
authored
clap update from 3.0.0-beta.2 to rc.3 renamed Args::about() to help() (#17)
* clap update from 3.0.0-beta.2 to rc.3 renamed Args::about() to help() See [#3075] (clap-rs/clap#3075) and [CHANGELOG] (https://github.com/clap-rs/clap/blob/ee2d70f8ef40025beb2ef901e39119ed1f809533/CHANGELOG.md?plain=1#L109) * Revert to App::about(), and typo in comment
1 parent a9b912d commit afe872a

File tree

4 files changed

+22
-30
lines changed

4 files changed

+22
-30
lines changed

Cargo.lock

Lines changed: 14 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "aoc-main"
33
description = "A macro which defines a handful main for the Advent of Code"
4-
version = "0.3.0"
4+
version = "0.3.1"
55
authors = ["Rémi Dupré <[email protected]>"]
66
repository = "https://github.com/remi-dupre/aoc"
77
license = "Apache-2.0"
@@ -15,7 +15,7 @@ bench = ["criterion"]
1515

1616
[dependencies]
1717
attohttpc = { version = "0.16.0", default_features = false, features = ["tls"] }
18-
clap = { version = "3.0.0-beta.2", default_features = false, features = ["std"] }
18+
clap = { version = "3.0.0-rc.3", default_features = false, features = ["std"] }
1919
colored = "2.0.0"
2020
dirs = "3.0.1"
2121

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn args(year: u16) -> App<'static> {
2020
.short('i')
2121
.long("stdin")
2222
.conflicts_with("file")
23-
.about("Read input from stdin instead of downloading it"),
23+
.help("Read input from stdin instead of downloading it"),
2424
)
2525
.arg(
2626
Arg::new("file")
@@ -29,28 +29,28 @@ pub fn args(year: u16) -> App<'static> {
2929
.long("file")
3030
.conflicts_with("stdin")
3131
.value_hint(ValueHint::FilePath)
32-
.about("Read input from file instead of downloading it"),
32+
.help("Read input from file instead of downloading it"),
3333
)
3434
.arg(
3535
Arg::new("days")
3636
.takes_value(true)
3737
.short('d')
3838
.long("day")
3939
.value_name("day num")
40-
.about("Days to execute. By default all implemented days will run"),
40+
.help("Days to execute. By default all implemented days will run"),
4141
)
4242
.arg(
4343
Arg::new("bench")
4444
.short('b')
4545
.long("bench")
46-
.about("Run criterion benchmarks"),
46+
.help("Run criterion benchmarks"),
4747
)
4848
.arg(
4949
Arg::new("all")
5050
.short('a')
5151
.long("all")
5252
.conflicts_with("days")
53-
.about("Run all days"),
53+
.help("Run all days"),
5454
)
5555
}
5656

src/parse/gen_run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ macro_rules! run_day {
3636

3737
#[macro_export]
3838
macro_rules! run_gen {
39-
// No generator is needed: default begavior is to just pass input &str
39+
// No generator is needed: default behavior is to just pass input &str
4040
( $day: ident, $data: expr, { gen_default } ) => {{
4141
Some($data)
4242
}};

0 commit comments

Comments
 (0)