From 2606cfe72db59735e8ab685f778968a1cf8c10be Mon Sep 17 00:00:00 2001 From: Camille Scholtz Date: Wed, 18 May 2016 17:37:13 +0200 Subject: 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. --- doc_src/fish_indent.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc_src') 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 -- cgit v1.2.3