Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/src/manpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ MISCELLANEOUS FLAGS
only. (Same as `--from /dev/null`.) Also useful in
`mlr -n put -v '...'` for analyzing abstract syntax
trees (if that's your thing).
-s {file name} Take command-line flags from file name. For more
information please see
https://miller.readthedocs.io/en/latest/scripting/.

OUTPUT-COLORIZATION FLAGS
Miller uses colors to highlight outputs. You can specify color preferences.
Expand Down
3 changes: 3 additions & 0 deletions docs/src/manpage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@ MISCELLANEOUS FLAGS
only. (Same as `--from /dev/null`.) Also useful in
`mlr -n put -v '...'` for analyzing abstract syntax
trees (if that's your thing).
-s {file name} Take command-line flags from file name. For more
information please see
https://miller.readthedocs.io/en/latest/scripting/.

OUTPUT-COLORIZATION FLAGS
Miller uses colors to highlight outputs. You can specify color preferences.
Expand Down
1 change: 1 addition & 0 deletions docs/src/reference-main-flag-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ These are flags which don't fit into any other category.
* `--tz {timezone}`: Specify timezone, overriding `$TZ` environment variable (if any).
* `-I`: Process files in-place. For each file name on the command line, output is written to a temp file in the same directory, which is then renamed over the original. Each file is processed in isolation: if the output format is CSV, CSV headers will be present in each output file, statistics are only over each file's own records; and so on.
* `-n`: Process no input files, nor standard input either. Useful for `mlr put` with `begin`/`end` statements only. (Same as `--from /dev/null`.) Also useful in `mlr -n put -v '...'` for analyzing abstract syntax trees (if that's your thing).
* `-s {file name}`: Take command-line flags from file name. For more information please see https://miller.readthedocs.io/en/latest/scripting/.

## Output-colorization flags

Expand Down
11 changes: 11 additions & 0 deletions internal/pkg/cli/option_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -2902,5 +2902,16 @@ has its own overhead.`,
*pargi += 1
},
},

{
name: "-s",
arg: "{file name}",
help: `Take command-line flags from file name. For more information please see ` +
lib.DOC_URL + `/en/latest/scripting/.`,
parser: func(args []string, argc int, pargi *int, options *TOptions) {
// Already handled in main(). Nothing to do here except to accept this as valid syntax.
*pargi += 2
},
},
},
}
3 changes: 3 additions & 0 deletions man/manpage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@ MISCELLANEOUS FLAGS
only. (Same as `--from /dev/null`.) Also useful in
`mlr -n put -v '...'` for analyzing abstract syntax
trees (if that's your thing).
-s {file name} Take command-line flags from file name. For more
information please see
https://miller.readthedocs.io/en/latest/scripting/.

OUTPUT-COLORIZATION FLAGS
Miller uses colors to highlight outputs. You can specify color preferences.
Expand Down
3 changes: 3 additions & 0 deletions man/mlr.1
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,9 @@ These are flags which don't fit into any other category.
only. (Same as `--from /dev/null`.) Also useful in
`mlr -n put -v '...'` for analyzing abstract syntax
trees (if that's your thing).
-s {file name} Take command-line flags from file name. For more
information please see
https://miller.readthedocs.io/en/latest/scripting/.
.fi
.if n \{\
.RE
Expand Down