Skip to content

Commit

Permalink
Merge pull request #130 from dtolnay/clap
Browse files Browse the repository at this point in the history
Update to clap 3.1.0
  • Loading branch information
dtolnay authored Feb 17, 2022
2 parents a5bdc99 + 05311bf commit 0371afb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 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 @@ -14,7 +14,7 @@ autotests = false

[dependencies]
atty = "0.2"
clap = { version = "3.0", default-features = false, features = ["derive", "std", "suggestions"] }
clap = { version = "3.1", default-features = false, features = ["derive", "std", "suggestions"] }
prettyplease = { version = "0.1", optional = true }
proc-macro2 = "1.0"
quote = { version = "1.0", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub enum Opts {
version,
author,
setting = AppSettings::DeriveDisplayOrder,
setting = AppSettings::DontCollapseArgsInUsage
dont_collapse_args_in_usage = true
)]
Expand(Args),
}
Expand Down Expand Up @@ -165,5 +165,5 @@ fn parse_selector(s: &str) -> Result<Selector, <Selector as FromStr>::Err> {

#[test]
fn test_cli() {
<Opts as clap::IntoApp>::into_app().debug_assert();
<Opts as clap::CommandFactory>::command().debug_assert();
}

0 comments on commit 0371afb

Please sign in to comment.