Explorar o código

Fix order of arguments in action adding

Samuel W. Flint %!s(int64=4) %!d(string=hai) anos
pai
achega
4eebc723e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main.rs

+ 1 - 1
src/main.rs

@@ -82,7 +82,7 @@ fn main() {
                         Some(string) => string.to_string(),
                         _ => String::from("")
                     };
-                    action::add(&mut configuration, &name, &command, &description);
+                    action::add(&mut configuration, &name, &description, &command);
                 },
                 Some("config") => if let Some(matches) = matches.subcommand_matches("config") {
                     let name = matches.value_of("name").unwrap().to_string();