aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src
diff options
context:
space:
mode:
authorGravatar Camille Scholtz <onodera@openmailbox.org>2016-05-18 17:37:13 +0200
committerGravatar Kurtis Rader <krader@skepticism.us>2016-05-22 20:00:23 -0700
commit2606cfe72db59735e8ab685f778968a1cf8c10be (patch)
tree4e030e9a3bc2ff07cf5e12bdc1ef8fcc67ad6117 /doc_src
parent85e701f42212fb51ba260d98555dc2763360ed83 (diff)
add option to modify script being restyled
This change allows the user to specify the script name on the CLI in addition to being redirected from stdin. It also adds a `-w` flag to write the modified script to the original file.
Diffstat (limited to 'doc_src')
-rw-r--r--doc_src/fish_indent.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc_src/fish_indent.txt b/doc_src/fish_indent.txt
index b4cf13c0..5f38449b 100644
--- a/doc_src/fish_indent.txt
+++ b/doc_src/fish_indent.txt
@@ -7,12 +7,14 @@ fish_indent [OPTIONS]
\subsection fish_indent-description 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.
+`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.
The following options are available:
- `-d` or `--dump` dumps information about the parsed fish commands to stderr
+- `-w` or `--write` indents a specified file and immediately writes to that file
+
- `-i` or `--no-indent` do not indent commands; only reformat to one job per line
- `-v` or `--version` displays the current fish version and then exits