Allow args to pass through roc run to application

This commit is contained in:
Richard Feldman 2022-05-06 16:23:19 -04:00
parent 39ba0aca29
commit 71fa8c6ee2
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798

View file

@ -153,6 +153,12 @@ pub fn build_app<'a>() -> Command<'a> {
.help("The .roc file of an app to run")
.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)
.about("Format a .roc file using standard Roc formatting")