fish_indent: Allow multiple file arguments

Allows `fish_indent -w **.fish` to restyle all fish files under the
current directory.

(This also has the sideeffect of reducing style.fish time by ~10s, as
we only need to invoke `fish_indent` once, instead of once per-file)
This commit is contained in:
Fabian Homborg
2019-05-20 21:04:51 +02:00
parent 8e640cdcc5
commit c2b7e9b2e6
3 changed files with 58 additions and 69 deletions

View File

@@ -6,13 +6,13 @@ fish_indent - indenter and prettifier
Synopsis
--------
fish_indent [OPTIONS]
fish_indent [OPTIONS] [FILE...]
Description
-----------
``fish_indent`` is used to indent a piece of fish code. ``fish_indent`` reads commands from standard input and outputs them to standard output or a specified file.
``fish_indent`` is used to indent a piece of fish code. ``fish_indent`` reads commands from standard input or the given filenames and outputs them to standard output or a specified file (if `-w` is given).
The following options are available: