Skip to content

Commit f8b86d4

Browse files
authored
Merge pull request #60 from klensy/arg-fix
allows to pass multiple components as -c foo bar baz
2 parents d427ef0 + 31928da commit f8b86d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,16 @@ struct Args {
5959
#[arg(
6060
short = 't',
6161
long = "targets",
62-
help = "additional target platforms to install rust-std for, besides the host platform"
62+
help = "additional target platforms to install rust-std for, besides the host platform",
63+
num_args = 1..,
6364
)]
6465
targets: Vec<String>,
6566

6667
#[arg(
6768
short = 'c',
6869
long = "component",
69-
help = "additional components to install, besides rustc and rust-std"
70+
help = "additional components to install, besides rustc and rust-std",
71+
num_args = 1..,
7072
)]
7173
components: Vec<String>,
7274

0 commit comments

Comments
 (0)