Browse Source

Update CLAP, fix error

Samuel W. Flint 1 year ago
parent
commit
d333fe783e
4 changed files with 6 additions and 6 deletions
  1. 3 3
      Cargo.lock
  2. 1 1
      Cargo.toml
  3. 1 1
      flake.nix
  4. 1 1
      src/main.rs

+ 3 - 3
Cargo.lock

@@ -30,9 +30,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
 
 [[package]]
 name = "clap"
-version = "4.0.7"
+version = "4.0.9"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a1af219c3e254a8b4649d6ddaef886b2015089f35f2ac5e1db31410c0566ab8"
+checksum = "30607dd93c420c6f1f80b544be522a0238a7db35e6a12968d28910983fee0df0"
 dependencies = [
  "atty",
  "bitflags",
@@ -185,7 +185,7 @@ dependencies = [
 
 [[package]]
 name = "sync-it"
-version = "2.0.2"
+version = "2.0.3"
 dependencies = [
  "clap",
  "clap_complete",

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "sync-it"
-version = "2.0.2"
+version = "2.0.3"
 authors = ["Samuel W. Flint <swflint@flintfam.org>"]
 edition = "2018"
 

+ 1 - 1
flake.nix

@@ -21,7 +21,7 @@
 
             src = ./.;
 
-            cargoSha256 = "OkbrFHZEA+Z00aDVKHGbGjsMs+OFtAPwwVAWS1tJPcM=";
+            cargoSha256 = "OHypC/H2I5nlrS331bsmnO09HwT8hicv1A31hCf9l1c=";
 
             meta = {
               description = "A simple, customizable synchronization tool.";

+ 1 - 1
src/main.rs

@@ -435,7 +435,7 @@ fn main() {
         Some(("repository", subm)) => {
             match subm.subcommand() {
                 Some(("register", subm)) => {
-                    let type_name = subm.get_one::<String>("type_name").expect("A type name must be provided").to_string();
+                    let type_name = subm.get_one::<String>("type").expect("A type name must be provided").to_string();
                     let location = match configuration.is_not_default {
                         true => env::current_dir().unwrap().strip_prefix(&configuration.base_path).unwrap().to_path_buf(),
                         _ => env::current_dir().unwrap()