Skip to content

Commit

Permalink
Merge pull request #91 from rust-secure-code/bpaf-0.6
Browse files Browse the repository at this point in the history
Migrate to bpaf v0.6
  • Loading branch information
Shnatsel authored Oct 2, 2022
2 parents 3b73688 + 6faed20 commit 29bfcb2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tar = "0.4.30"
indicatif = "0.17.0"
bpaf = "0.5.0"
bpaf = "0.6.0"
anyhow = "1.0.28"

[dev-dependencies]
Expand Down
8 changes: 4 additions & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The cache will be considered valid while younger than specified.
The format is a human readable duration such as `1w` or `1d 6h`.
If not specified, the cache is considered valid for 48 hours.",
)
.argument("AGE")
.argument::<String>("AGE")
.parse(|text| humantime::parse_duration(&text))
.fallback(Duration::from_secs(48 * 3600))
}
Expand All @@ -62,15 +62,15 @@ fn meta_args() -> impl Parser<MetadataArgs> {
.switch();
let features = long("features")
.help("Space or comma separated list of features to activate")
.argument("FEATURES")
.argument::<String>("FEATURES")
.optional();
let target = long("target")
.help("Only include dependencies matching the given target-triple")
.argument("TRIPLE")
.argument::<String>("TRIPLE")
.optional();
let manifest_path = long("manifest-path")
.help("Path to Cargo.toml")
.argument_os("PATH")
.argument::<PathBuf>("PATH")
.map(PathBuf::from)
.optional();
construct!(MetadataArgs {
Expand Down

0 comments on commit 29bfcb2

Please sign in to comment.