diff --git a/src/main.rs b/src/main.rs index 9d486e1..e8fab05 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,7 +72,7 @@ struct AddArgs { registry: Option, #[argh(positional)] - path: PathBuf, + path: Vec, } /// Remove a crate from the registry @@ -329,7 +329,9 @@ enum DoInitializeError { fn do_add(global: &Global, add: AddArgs) -> Result<(), Error> { let r = discover_registry(add.registry)?; - r.add(global, &add.path)?; + for i in add.path { + r.add(global, i)?; + } r.maybe_generate_html()?; Ok(())