We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd46842 + 51dcb08 commit 6ac7968Copy full SHA for 6ac7968
src/main.rs
@@ -72,7 +72,7 @@ struct AddArgs {
72
registry: Option<PathBuf>,
73
74
#[argh(positional)]
75
- path: PathBuf,
+ path: Vec<PathBuf>,
76
}
77
78
/// Remove a crate from the registry
@@ -329,7 +329,9 @@ enum DoInitializeError {
329
fn do_add(global: &Global, add: AddArgs) -> Result<(), Error> {
330
let r = discover_registry(add.registry)?;
331
332
- r.add(global, &add.path)?;
+ for i in add.path {
333
+ r.add(global, i)?;
334
+ }
335
r.maybe_generate_html()?;
336
337
Ok(())
0 commit comments