Skip to content

Commit caff6c8

Browse files
authored
Merge pull request #33 from r-ml/clap-beta-4
Update clap
2 parents fce34fb + dbfe68b commit caff6c8

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

Cargo.lock

Lines changed: 8 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exclude = [
2020
]
2121

2222
[dependencies]
23-
clap = "3.0.0-beta.2"
23+
clap = "3.0.0-beta.4"
2424
dirs-next = "2"
2525
env_logger = "0.8"
2626
lazy_static = "1"

src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn parse_args() -> Args {
122122
.arg(Arg::new("script-args")
123123
.index(2)
124124
.about("Arguments for the script to execute.")
125-
.multiple(true)
125+
.multiple_values(true)
126126
.min_values(0)
127127
)
128128
.arg(Arg::new("expr")
@@ -165,23 +165,23 @@ fn parse_args() -> Args {
165165
.long("dep")
166166
.short('d')
167167
.takes_value(true)
168-
.multiple(true)
168+
.multiple_values(true)
169169
.number_of_values(1)
170170
)
171171
.arg(Arg::new("dep_extern")
172172
.about("Like `dep`, except that it *also* adds a `#[macro_use] extern crate name;` item for expression and loop scripts. Note that this only works if the name of the dependency and the name of the library it generates are exactly the same.")
173173
.long("dep-extern")
174174
.short('D')
175175
.takes_value(true)
176-
.multiple(true)
176+
.multiple_values(true)
177177
.requires("expr_or_loop")
178178
)
179179
.arg(Arg::new("extern")
180180
.about("Adds an `#[macro_use] extern crate name;` item for expressions and loop scripts.")
181181
.long("extern")
182182
.short('x')
183183
.takes_value(true)
184-
.multiple(true)
184+
.multiple_values(true)
185185
.requires("expr_or_loop")
186186
)
187187
.arg(Arg::new("features")
@@ -194,7 +194,7 @@ fn parse_args() -> Args {
194194
.long("unstable-feature")
195195
.short('u')
196196
.takes_value(true)
197-
.multiple(true)
197+
.multiple_values(true)
198198
.requires("expr_or_loop")
199199
)
200200

0 commit comments

Comments
 (0)