diff --git a/Cargo.lock b/Cargo.lock index 03950f8..18c7042 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -134,9 +134,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "clap" -version = "3.0.7" +version = "3.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12e8611f9ae4e068fa3e56931fded356ff745e70987ff76924a6e0ab1c8ef2e3" +checksum = "86f8c0e2a6b902acc18214e24a6935cdaf8a8e34231913d4404dcaee659f65a1" dependencies = [ "atty", "bitflags", @@ -160,9 +160,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "3.0.6" +version = "3.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "517358c28fcef6607bf6f76108e02afad7e82297d132a6b846dcc1fc3efcd153" +checksum = "01d42c94ce7c2252681b5fed4d3627cc807b13dfc033246bd05d5b252399000e" dependencies = [ "heck", "proc-macro-error", diff --git a/Cargo.toml b/Cargo.toml index 6ea923d..96c7ff6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ description = "A command-line utility for easily compressing and decompressing f [dependencies] atty = "0.2.14" bzip2 = "0.4.3" -clap = { version = "3.0.4", features = ["derive", "env"] } +clap = { version = "3.1.3", features = ["derive", "env"] } flate2 = { version = "1.0.22", default-features = false } fs-err = "2.6.0" libc = "0.2.103" diff --git a/build.rs b/build.rs index a8b0677..b3db91e 100644 --- a/build.rs +++ b/build.rs @@ -14,7 +14,7 @@ fn main() { let out = &Path::new(&env::var_os("OUT_DIR").unwrap()).join("completions"); create_dir_all(out).unwrap(); - let app = &mut Opts::into_app(); + let app = &mut Opts::command(); for shell in Shell::value_variants() { generate_to(*shell, app, "ouch", out).unwrap();