mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Reorder roc glue
arguments and add a default
This commit is contained in:
parent
0149e7231c
commit
977b7394f5
2 changed files with 9 additions and 8 deletions
|
@ -279,22 +279,23 @@ pub fn build_app<'a>() -> Command<'a> {
|
|||
.subcommand(Command::new(CMD_GLUE)
|
||||
.about("Generate glue code between a platform's Roc API and its host language")
|
||||
.arg(
|
||||
Arg::new(ROC_FILE)
|
||||
.help("The .roc file for the platform module")
|
||||
Arg::new(GLUE_SPEC)
|
||||
.help("The specification for how to translate Roc types into output files.")
|
||||
.allow_invalid_utf8(true)
|
||||
.required(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::new(GLUE_DIR)
|
||||
.help("The directory for the generated glue code.\nNote: The implementation can write to any file in the directory.")
|
||||
.help("The directory for the generated glue code.\nNote: The implementation can write to any file in this directory.")
|
||||
.allow_invalid_utf8(true)
|
||||
.required(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::new(GLUE_SPEC)
|
||||
.help("The specification for how to convert roc types into another programming language")
|
||||
Arg::new(ROC_FILE)
|
||||
.help("The .roc file whose exposed types should be translated.")
|
||||
.allow_invalid_utf8(true)
|
||||
.required(true)
|
||||
.required(false)
|
||||
.default_value(DEFAULT_ROC_FILENAME)
|
||||
)
|
||||
)
|
||||
.subcommand(Command::new(CMD_GEN_STUB_LIB)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue