--- a/crates/jrsonnet-cli/src/ext.rs +++ b/crates/jrsonnet-cli/src/ext.rs @@ -61,19 +61,40 @@ /// to use top level arguments whenever it's possible. /// If [=data] is not set then it will be read from `name` env variable. /// Can be accessed from code via `std.extVar("name")`. - #[clap(long, short = 'V', name = "name[=var data]", number_of_values = 1)] + #[clap( + long, + short = 'V', + name = "name[=var data]", + number_of_values = 1, + multiple_occurrences = true + )] ext_str: Vec, /// Read string external variable from file. /// See also `--ext-str` - #[clap(long, name = "name=var path", number_of_values = 1)] + #[clap( + long, + name = "name=var path", + number_of_values = 1, + multiple_occurrences = true + )] ext_str_file: Vec, /// Add external variable from code. /// See also `--ext-str` - #[clap(long, name = "name[=var source]", number_of_values = 1)] + #[clap( + long, + name = "name[=var source]", + number_of_values = 1, + multiple_occurrences = true + )] ext_code: Vec, /// Read string external variable from file. /// See also `--ext-str` - #[clap(long, name = "name=var code path", number_of_values = 1)] + #[clap( + long, + name = "name=var code path", + number_of_values = 1, + multiple_occurrences = true + )] ext_code_file: Vec, } impl ConfigureState for ExtVarOpts { --- a/crates/jrsonnet-cli/src/tla.rs +++ b/crates/jrsonnet-cli/src/tla.rs @@ -9,19 +9,40 @@ /// Top level arguments will be passed to function before manifestification stage. /// This is preferred to ExtVars method. /// If [=data] is not set then it will be read from `name` env variable. - #[clap(long, short = 'A', name = "name[=tla data]", number_of_values = 1)] + #[clap( + long, + short = 'A', + name = "name[=tla data]", + number_of_values = 1, + multiple_occurrences = true + )] tla_str: Vec, /// Read top level argument string from file. /// See also `--tla-str` - #[clap(long, name = "name=tla path", number_of_values = 1)] + #[clap( + long, + name = "name=tla path", + number_of_values = 1, + multiple_occurrences = true + )] tla_str_file: Vec, /// Add top level argument from code. /// See also `--tla-str` - #[clap(long, name = "name[=tla source]", number_of_values = 1)] + #[clap( + long, + name = "name[=tla source]", + number_of_values = 1, + multiple_occurrences = true + )] tla_code: Vec, /// Read top level argument code from file. /// See also `--tla-str` - #[clap(long, name = "name=tla code path", number_of_values = 1)] + #[clap( + long, + name = "name=tla code path", + number_of_values = 1, + multiple_occurrences = true + )] tla_code_file: Vec, } impl ConfigureState for TLAOpts {