diff options
author | scarf <greenscarf005@gmail.com> | 2023-11-28 00:32:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 10:32:12 -0500 |
commit | 2b7e145e56c7f1fbb4498d4ec6c6f9d237405db7 (patch) | |
tree | 24ef9ad68cd9b786aeb12ae79d40d06c3cc92869 /cli/args | |
parent | 3d47c7eb1ffc1da810d8d9dd8c0304cb26616d3e (diff) |
feat(fmt): support formatting code blocks in Jupyter notebooks (#21310)
Diffstat (limited to 'cli/args')
-rw-r--r-- | cli/args/flags.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index d7d51b374..555f2f312 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -1579,7 +1579,9 @@ Ignore formatting a file by adding an ignore comment at the top of the file: .help("Set content type of the supplied file") // prefer using ts for formatting instead of js because ts works in more scenarios .default_value("ts") - .value_parser(["ts", "tsx", "js", "jsx", "md", "json", "jsonc"]), + .value_parser([ + "ts", "tsx", "js", "jsx", "md", "json", "jsonc", "ipynb", + ]), ) .arg( Arg::new("ignore") |