diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-13 16:02:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-13 16:02:18 -0500 |
commit | 9325744a9426241a2826a6fb5516269227e26efa (patch) | |
tree | b6f5a0691e1e679e5dcf16b6b4057b574a050a6e /cli/lib.rs | |
parent | 6bd846a780bec8a60d0a251ed1fb43e3add81be5 (diff) |
Clean up fmt flags and path handling (#3988)
Diffstat (limited to 'cli/lib.rs')
-rw-r--r-- | cli/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/lib.rs b/cli/lib.rs index f89eb4bd7..e646c4199 100644 --- a/cli/lib.rs +++ b/cli/lib.rs @@ -413,7 +413,7 @@ async fn run_script( Ok(()) } -async fn fmt_command(files: Option<Vec<PathBuf>>, check: bool) { +async fn fmt_command(files: Vec<String>, check: bool) { if let Err(err) = fmt::format_files(files, check) { print_err_and_exit(err); } @@ -493,9 +493,7 @@ pub fn main() { } DenoSubcommand::Eval { code } => eval_command(flags, code).await, DenoSubcommand::Fetch { files } => fetch_command(flags, files).await, - DenoSubcommand::Format { check, files } => { - fmt_command(files, check).await - } + DenoSubcommand::Fmt { check, files } => fmt_command(files, check).await, DenoSubcommand::Info { file } => info_command(flags, file).await, DenoSubcommand::Install { dir, |