Skip to content

Commit

Permalink
feat: upgrade clap
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Oct 24, 2022
1 parent 0bd5df4 commit 7711650
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ tempfile-fast = "0.3"

[dependencies.clap]
optional = true
version = "2"
version = "3"

[dependencies.digest]
features = ["std"]
Expand Down
10 changes: 5 additions & 5 deletions src/bin/fapt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ fn main() -> Result<(), anyhow::Error> {
.arg(
Arg::with_name("cache-dir")
.long("cache-dir")
.short("c")
.short('c')
.value_name("DIRECTORY")
.help("explicitly set the cache directory"),
)
.arg(
Arg::with_name("sources-line")
.long("sources-line")
.short("r")
.short('r')
.value_name("LINE")
.multiple(true)
.number_of_values(1)
Expand All @@ -52,7 +52,7 @@ fn main() -> Result<(), anyhow::Error> {
.arg(
Arg::with_name("arch")
.long("arch")
.short("a")
.short('a')
.value_name("ARCH")
.multiple(true)
.number_of_values(1)
Expand Down Expand Up @@ -130,10 +130,10 @@ fn main() -> Result<(), anyhow::Error> {
system.set_dpkg_database(matches.value_of("system-dpkg").unwrap());

match matches.subcommand() {
("source-ninja", Some(_)) => {
Some(("source-ninja", _)) => {
commands::source_ninja(&system)?;
}
("update", _) => {
Some(("update", _)) => {
system.update()?;
}
_ => unreachable!(),
Expand Down

0 comments on commit 7711650

Please sign in to comment.