summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/flags.rs')
-rw-r--r--cli/flags.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/flags.rs b/cli/flags.rs
index c816830b6..c8e5c6e31 100644
--- a/cli/flags.rs
+++ b/cli/flags.rs
@@ -682,8 +682,8 @@ fn parse_script_args(
let matches =
cli_app.get_matches_from_safe(vec!["deno".to_string(), arg.to_string()]);
- if matches.is_ok() {
- flags = parse_flags(&matches.unwrap(), Some(flags));
+ if let Ok(m) = matches {
+ flags = parse_flags(&m, Some(flags));
} else {
argv.push(arg.to_string());
}