summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/flags.rs2
-rw-r--r--cli/main.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/cli/flags.rs b/cli/flags.rs
index 754ccec84..f018d00b0 100644
--- a/cli/flags.rs
+++ b/cli/flags.rs
@@ -890,7 +890,7 @@ fn compile_subcommand<'a, 'b>() -> App<'a, 'b> {
runtime_args(SubCommand::with_name("compile"), true, false)
.setting(AppSettings::TrailingVarArg)
.arg(
- script_arg(),
+ script_arg().required(true),
)
.arg(
Arg::with_name("output")
diff --git a/cli/main.rs b/cli/main.rs
index 519fc26c4..de0e63e84 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -1248,6 +1248,7 @@ fn unwrap_or_exit<T>(result: Result<T, AnyError>) -> T {
let msg = format!(
"{}: {}",
colors::red_bold("error"),
+ // TODO(lucacasonato): print anyhow error chain here
error.to_string().trim()
);
eprintln!("{}", msg);