Skip to content

Commit 7ae55dd

Browse files
committed
Quick Save
1 parent f90ae21 commit 7ae55dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmds/csvcleaner/csvcleaner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Trim trailing spaces from output.
5858
5959
Trim leading and trailing spaces from output.
6060
61-
cat mysheet.csv | %s -trim
61+
cat mysheet.csv | %s -trim-space
6262
`
6363

6464
// Standard Options
@@ -113,7 +113,7 @@ func main() {
113113

114114
// Application specific options
115115
app.IntVar(&fieldsPerRecord, "fields-per-row", 0, "set the number of columns to output right padding empty cells as needed")
116-
app.BoolVar(&trimSpace, "trim", false, "trim spaces on CSV out")
116+
app.BoolVar(&trimSpace, "trim,trim-spaces", false, "trim spaces on CSV out")
117117
app.BoolVar(&trimLeftSpace, "left-trim", false, "left trim spaces on CSV out")
118118
app.BoolVar(&trimRightSpace, "right-trim", false, "right trim spaces on CSV out")
119119
app.BoolVar(&reuseRecord, "reuse", true, "if false then a new array is allocated for each row processed, if true the array gets reused")

0 commit comments

Comments
 (0)