diff options
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index decf3cb17..f87c338c4 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -601,7 +601,13 @@ fn fmt_subcommand<'a, 'b>() -> App<'a, 'b> { deno fmt --check Format stdin and write to stdout: - cat file.ts | deno fmt -", + cat file.ts | deno fmt - + +Ignore formatting code by preceding it with an ignore comment: + // deno-fmt-ignore + +Ignore formatting a file by adding an ignore comment at the top of the file: + // deno-fmt-ignore-file", ) .arg( Arg::with_name("check") |