mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Allow args to pass through roc run
to application
This commit is contained in:
parent
39ba0aca29
commit
71fa8c6ee2
1 changed files with 6 additions and 0 deletions
|
@ -153,6 +153,12 @@ pub fn build_app<'a>() -> Command<'a> {
|
||||||
.help("The .roc file of an app to run")
|
.help("The .roc file of an app to run")
|
||||||
.required(true),
|
.required(true),
|
||||||
)
|
)
|
||||||
|
.arg(
|
||||||
|
Arg::new(ARGS_FOR_APP)
|
||||||
|
.help("Arguments to pass into the app being run")
|
||||||
|
.requires(ROC_FILE)
|
||||||
|
.multiple_values(true),
|
||||||
|
)
|
||||||
)
|
)
|
||||||
.subcommand(Command::new(CMD_FORMAT)
|
.subcommand(Command::new(CMD_FORMAT)
|
||||||
.about("Format a .roc file using standard Roc formatting")
|
.about("Format a .roc file using standard Roc formatting")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue