Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 5a78d09

Browse files
authored
Restore old argument behavior (#939)
Fixes #933
1 parent 29644d6 commit 5a78d09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,19 +390,19 @@ pub struct CommandLineArgs {
390390
no_retry: bool,
391391

392392
/// Do not perform upgrades for the given steps
393-
#[clap(long = "disable", arg_enum)]
393+
#[clap(long = "disable", arg_enum, multiple_values = true)]
394394
disable: Vec<Step>,
395395

396396
/// Perform only the specified steps (experimental)
397-
#[clap(long = "only", arg_enum)]
397+
#[clap(long = "only", arg_enum, multiple_values = true)]
398398
only: Vec<Step>,
399399

400400
/// Run only specific custom commands
401401
#[clap(long = "custom-commands")]
402402
custom_commands: Vec<String>,
403403

404404
/// Set environment variables
405-
#[clap(long = "env")]
405+
#[clap(long = "env", multiple_values = true)]
406406
env: Vec<String>,
407407

408408
/// Output logs
@@ -414,7 +414,7 @@ pub struct CommandLineArgs {
414414
keep_at_end: bool,
415415

416416
/// Say yes to package manager's prompt
417-
#[clap(short = 'y', long = "yes", arg_enum)]
417+
#[clap(short = 'y', long = "yes", arg_enum, multiple_values = true, min_values = 0)]
418418
yes: Option<Vec<Step>>,
419419

420420
/// Don't pull the predefined git repos

0 commit comments

Comments
 (0)