mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Update deprecated clap function
This commit is contained in:
parent
8560dc5b32
commit
df76f5f49c
1 changed files with 3 additions and 3 deletions
|
@ -122,7 +122,7 @@ pub fn build_app<'a>() -> App<'a> {
|
||||||
.about("Generate documentation for Roc modules (Work In Progress)")
|
.about("Generate documentation for Roc modules (Work In Progress)")
|
||||||
.arg(Arg::new(DIRECTORY_OR_FILES)
|
.arg(Arg::new(DIRECTORY_OR_FILES)
|
||||||
.index(1)
|
.index(1)
|
||||||
.multiple(true)
|
.multiple_values(true)
|
||||||
.required(false)
|
.required(false)
|
||||||
.about("The directory or files to build documentation for")
|
.about("The directory or files to build documentation for")
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ pub fn build_app<'a>() -> App<'a> {
|
||||||
Arg::new(ARGS_FOR_APP)
|
Arg::new(ARGS_FOR_APP)
|
||||||
.about("Arguments to pass into the app being run")
|
.about("Arguments to pass into the app being run")
|
||||||
.requires(ROC_FILE)
|
.requires(ROC_FILE)
|
||||||
.multiple(true),
|
.multiple_values(true),
|
||||||
);
|
);
|
||||||
|
|
||||||
if cfg!(feature = "editor") {
|
if cfg!(feature = "editor") {
|
||||||
|
@ -193,7 +193,7 @@ pub fn build_app<'a>() -> App<'a> {
|
||||||
App::new(CMD_EDIT).about("Launch the Roc editor").arg(
|
App::new(CMD_EDIT).about("Launch the Roc editor").arg(
|
||||||
Arg::new(DIRECTORY_OR_FILES)
|
Arg::new(DIRECTORY_OR_FILES)
|
||||||
.index(1)
|
.index(1)
|
||||||
.multiple(true)
|
.multiple_values(true)
|
||||||
.required(false)
|
.required(false)
|
||||||
.about("(optional) The directory or files to open on launch."),
|
.about("(optional) The directory or files to open on launch."),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue