diff options
author | Cre3per <12541974+Cre3per@users.noreply.github.com> | 2023-03-22 15:15:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 10:15:53 -0400 |
commit | fd0658fb429e659b037cbf8b2a86459ce49cb3b3 (patch) | |
tree | 7ffa357ebfb18c5cd655677b5cc29c24089ddaa2 /cli/main.rs | |
parent | 50b793c9ed866ee29e8f04b4fa24b485b01a2b74 (diff) |
feat(cli): --ext parameter for run, compile, and bundle (#17172)
Adds `--ext` to `deno run`, closes #5088
Additionally
- Adds `--ext` to `deno compile` and `deno bundle`
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs index 3a479a313..af373fac2 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -88,7 +88,7 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> { Ok(0) } DenoSubcommand::Fmt(fmt_flags) => { - let cli_options = CliOptions::from_flags(flags)?; + let cli_options = CliOptions::from_flags(flags.clone())?; let fmt_options = cli_options.resolve_fmt_options(fmt_flags)?; tools::fmt::format(cli_options, fmt_options).await?; Ok(0) @@ -130,7 +130,7 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> { if run_flags.is_stdin() { tools::run::run_from_stdin(flags).await } else { - tools::run::run_script(flags, run_flags).await + tools::run::run_script(flags).await } } DenoSubcommand::Task(task_flags) => { |