diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/markdown/Commands.md | 4 | ||||
| -rw-r--r-- | docs/markdown/snippets/format_from_stdin.md | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Commands.md b/docs/markdown/Commands.md index 8e34800a4..a99deb494 100644 --- a/docs/markdown/Commands.md +++ b/docs/markdown/Commands.md @@ -489,6 +489,10 @@ When `--recursive` option is specified, `meson.build` files from `subdir` are also analyzed (must be used in conjunction with `--inplace` or `--check-only` option). +*Since 1.7.0* You can use `-` as source file name to read source from standard +input instead of reading it from a file. This cannot be used with `--recursive` +or `--inline` arguments. + #### Differences with `muon fmt` diff --git a/docs/markdown/snippets/format_from_stdin.md b/docs/markdown/snippets/format_from_stdin.md new file mode 100644 index 000000000..cebe976c4 --- /dev/null +++ b/docs/markdown/snippets/format_from_stdin.md @@ -0,0 +1,4 @@ +## format command now accept stdin argument + +You can now use `-` argument for `meson format` to read input from stdin +instead of reading it from a file. |
