mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
add dev flag
This commit is contained in:
parent
418a403f0c
commit
b74857f268
1 changed files with 19 additions and 0 deletions
|
@ -28,6 +28,7 @@ pub const CMD_EDIT: &str = "edit";
|
||||||
pub const CMD_DOCS: &str = "docs";
|
pub const CMD_DOCS: &str = "docs";
|
||||||
|
|
||||||
pub const FLAG_DEBUG: &str = "debug";
|
pub const FLAG_DEBUG: &str = "debug";
|
||||||
|
pub const FLAG_DEV: &str = "dev";
|
||||||
pub const FLAG_OPTIMIZE: &str = "optimize";
|
pub const FLAG_OPTIMIZE: &str = "optimize";
|
||||||
pub const FLAG_LIB: &str = "lib";
|
pub const FLAG_LIB: &str = "lib";
|
||||||
pub const FLAG_BACKEND: &str = "backend";
|
pub const FLAG_BACKEND: &str = "backend";
|
||||||
|
@ -54,6 +55,12 @@ pub fn build_app<'a>() -> App<'a> {
|
||||||
.help("Optimize your compiled Roc program to run faster. (Optimization takes time to complete.)")
|
.help("Optimize your compiled Roc program to run faster. (Optimization takes time to complete.)")
|
||||||
.required(false),
|
.required(false),
|
||||||
)
|
)
|
||||||
|
.arg(
|
||||||
|
Arg::with_name(FLAG_DEV)
|
||||||
|
.long(FLAG_DEV)
|
||||||
|
.help("Make compilation as fast as possible. (Runtime performance may suffer)")
|
||||||
|
.required(false),
|
||||||
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name(FLAG_BACKEND)
|
Arg::with_name(FLAG_BACKEND)
|
||||||
.long(FLAG_BACKEND)
|
.long(FLAG_BACKEND)
|
||||||
|
@ -91,6 +98,12 @@ pub fn build_app<'a>() -> App<'a> {
|
||||||
.help("Optimize the compiled program to run faster. (Optimization takes time to complete.)")
|
.help("Optimize the compiled program to run faster. (Optimization takes time to complete.)")
|
||||||
.required(false),
|
.required(false),
|
||||||
)
|
)
|
||||||
|
.arg(
|
||||||
|
Arg::with_name(FLAG_DEV)
|
||||||
|
.long(FLAG_DEV)
|
||||||
|
.help("Make compilation as fast as possible. (Runtime performance may suffer)")
|
||||||
|
.required(false),
|
||||||
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name(FLAG_DEBUG)
|
Arg::with_name(FLAG_DEBUG)
|
||||||
.long(FLAG_DEBUG)
|
.long(FLAG_DEBUG)
|
||||||
|
@ -130,6 +143,12 @@ pub fn build_app<'a>() -> App<'a> {
|
||||||
.requires(ROC_FILE)
|
.requires(ROC_FILE)
|
||||||
.required(false),
|
.required(false),
|
||||||
)
|
)
|
||||||
|
.arg(
|
||||||
|
Arg::with_name(FLAG_DEV)
|
||||||
|
.long(FLAG_DEV)
|
||||||
|
.help("Make compilation as fast as possible. (Runtime performance may suffer)")
|
||||||
|
.required(false),
|
||||||
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name(FLAG_DEBUG)
|
Arg::with_name(FLAG_DEBUG)
|
||||||
.long(FLAG_DEBUG)
|
.long(FLAG_DEBUG)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue