From 5a78d093000feac31027a07d24d784cee4ee3b80 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 23 May 2022 22:20:46 +0300 Subject: [PATCH] Restore old argument behavior (#939) Fixes #933 --- src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index 638e1a56..b7a3b7f4 100644 --- a/src/config.rs +++ b/src/config.rs @@ -390,11 +390,11 @@ pub struct CommandLineArgs { no_retry: bool, /// Do not perform upgrades for the given steps - #[clap(long = "disable", arg_enum)] + #[clap(long = "disable", arg_enum, multiple_values = true)] disable: Vec, /// Perform only the specified steps (experimental) - #[clap(long = "only", arg_enum)] + #[clap(long = "only", arg_enum, multiple_values = true)] only: Vec, /// Run only specific custom commands @@ -402,7 +402,7 @@ pub struct CommandLineArgs { custom_commands: Vec, /// Set environment variables - #[clap(long = "env")] + #[clap(long = "env", multiple_values = true)] env: Vec, /// Output logs @@ -414,7 +414,7 @@ pub struct CommandLineArgs { keep_at_end: bool, /// Say yes to package manager's prompt - #[clap(short = 'y', long = "yes", arg_enum)] + #[clap(short = 'y', long = "yes", arg_enum, multiple_values = true, min_values = 0)] yes: Option>, /// Don't pull the predefined git repos