Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ exclude = [
]

[dependencies]
clap = "3.0.0-beta.2"
clap = "3.0.0-beta.4"
dirs-next = "2"
env_logger = "0.8"
lazy_static = "1"
Expand Down
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fn parse_args() -> Args {
.arg(Arg::new("script-args")
.index(2)
.about("Arguments for the script to execute.")
.multiple(true)
.multiple_values(true)
.min_values(0)
)
.arg(Arg::new("expr")
Expand Down Expand Up @@ -165,23 +165,23 @@ fn parse_args() -> Args {
.long("dep")
.short('d')
.takes_value(true)
.multiple(true)
.multiple_values(true)
.number_of_values(1)
)
.arg(Arg::new("dep_extern")
.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.")
.long("dep-extern")
.short('D')
.takes_value(true)
.multiple(true)
.multiple_values(true)
.requires("expr_or_loop")
)
.arg(Arg::new("extern")
.about("Adds an `#[macro_use] extern crate name;` item for expressions and loop scripts.")
.long("extern")
.short('x')
.takes_value(true)
.multiple(true)
.multiple_values(true)
.requires("expr_or_loop")
)
.arg(Arg::new("features")
Expand All @@ -194,7 +194,7 @@ fn parse_args() -> Args {
.long("unstable-feature")
.short('u')
.takes_value(true)
.multiple(true)
.multiple_values(true)
.requires("expr_or_loop")
)

Expand Down