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

clap update from 3.0.0-beta.2 to rc.3 renamed Args::about() to help() #17

Merged
merged 2 commits into from
Dec 14, 2021
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
38 changes: 16 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "aoc-main"
description = "A macro which defines a handful main for the Advent of Code"
version = "0.3.0"
version = "0.3.1"
authors = ["Rémi Dupré <[email protected]>"]
repository = "https://github.com/remi-dupre/aoc"
license = "Apache-2.0"
Expand All @@ -15,7 +15,7 @@ bench = ["criterion"]

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

Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn args(year: u16) -> App<'static> {
.short('i')
.long("stdin")
.conflicts_with("file")
.about("Read input from stdin instead of downloading it"),
.help("Read input from stdin instead of downloading it"),
)
.arg(
Arg::new("file")
Expand All @@ -29,28 +29,28 @@ pub fn args(year: u16) -> App<'static> {
.long("file")
.conflicts_with("stdin")
.value_hint(ValueHint::FilePath)
.about("Read input from file instead of downloading it"),
.help("Read input from file instead of downloading it"),
)
.arg(
Arg::new("days")
.takes_value(true)
.short('d')
.long("day")
.value_name("day num")
.about("Days to execute. By default all implemented days will run"),
.help("Days to execute. By default all implemented days will run"),
)
.arg(
Arg::new("bench")
.short('b')
.long("bench")
.about("Run criterion benchmarks"),
.help("Run criterion benchmarks"),
)
.arg(
Arg::new("all")
.short('a')
.long("all")
.conflicts_with("days")
.about("Run all days"),
.help("Run all days"),
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/parse/gen_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ macro_rules! run_day {

#[macro_export]
macro_rules! run_gen {
// No generator is needed: default begavior is to just pass input &str
// No generator is needed: default behavior is to just pass input &str
( $day: ident, $data: expr, { gen_default } ) => {{
Some($data)
}};
Expand Down