fish_indent: Print the failed files with --check

Also return the number of failed files.

I decided to *just* print the filenames (newline-separated because
NULLs are annoying here) to make it easier to deal with.

See #7251.
This commit is contained in:
Fabian Homborg
2020-08-10 22:02:03 +02:00
parent a7305c7082
commit 7254dfecb2
2 changed files with 8 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ The following options are available:
- ``-i`` or ``--no-indent`` do not indent commands; only reformat to one job per line.
- ``-c`` or ``--check`` do not indent, only return 0 if the code is already indented as fish_indent would, 1 otherwise.
- ``-c`` or ``--check`` do not indent, only return 0 if the code is already indented as fish_indent would, the number of failed files otherwise. Also print the failed filenames if not reading from stdin.
- ``-v`` or ``--version`` displays the current fish version and then exits.