mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
Add help strings for -a/-r in sub/gsub/ssub (#1721)
* Help strings for `-a`/`-r` in `sub`/`gsub`/`ssub` * `mlr regtest -p test/cases/cli-help` to update expected outputs * artifacts from `make dev`
This commit is contained in:
parent
5c65edba95
commit
9f77bbe096
8 changed files with 51 additions and 10 deletions
|
|
@ -49,6 +49,8 @@ func transformerSubUsage(
|
|||
fmt.Fprintf(o, "See also the `gsub` and `ssub` verbs.\n")
|
||||
fmt.Fprintf(o, "Options:\n")
|
||||
fmt.Fprintf(o, "-f {a,b,c} Field names to convert.\n")
|
||||
fmt.Fprintf(o, "-r {regex} Regular expression for field names to convert.\n")
|
||||
fmt.Fprintf(o, "-a Convert all field names.\n")
|
||||
fmt.Fprintf(o, "-h|--help Show this message.\n")
|
||||
}
|
||||
|
||||
|
|
@ -61,6 +63,8 @@ func transformerGsubUsage(
|
|||
fmt.Fprintf(o, "See also the `sub` and `ssub` verbs.\n")
|
||||
fmt.Fprintf(o, "Options:\n")
|
||||
fmt.Fprintf(o, "-f {a,b,c} Field names to convert.\n")
|
||||
fmt.Fprintf(o, "-r {regex} Regular expression for field names to convert.\n")
|
||||
fmt.Fprintf(o, "-a Convert all field names.\n")
|
||||
fmt.Fprintf(o, "-h|--help Show this message.\n")
|
||||
}
|
||||
|
||||
|
|
@ -72,6 +76,8 @@ func transformerSsubUsage(
|
|||
fmt.Fprintf(o, "the old string, like the `ssub` DSL function. See also the `gsub` and `sub` verbs.\n")
|
||||
fmt.Fprintf(o, "Options:\n")
|
||||
fmt.Fprintf(o, "-f {a,b,c} Field names to convert.\n")
|
||||
fmt.Fprintf(o, "-r {regex} Regular expression for field names to convert.\n")
|
||||
fmt.Fprintf(o, "-a Convert all field names.\n")
|
||||
fmt.Fprintf(o, "-h|--help Show this message.\n")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue