Skip to content

Commit

Permalink
fix english
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwei356 committed Mar 13, 2024
1 parent e10eb9a commit 0a5f0c6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ More [examples](http://shenwei356.github.io/csvtk/usage/) and [tutorial](http://

1. By default, csvtk assumes input files have header row, if not, switch flag `-H` on.
2. By default, csvtk handles CSV files, use flag `-t` for tab-delimited files.
3. Column names better be unique.
3. Column names should be unique.
4. By default, lines starting with `#` will be ignored, if the header row
starts with `#`, please assign flag `-C` another rare symbol, e.g. `$`.
5. Do not mix use field (column) numbers and names to specify columns to operate.
Expand Down
2 changes: 2 additions & 0 deletions csvtk/cmd/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ type Config struct {
Tabs bool
OutTabs bool
NoHeaderRow bool
NoOutHeader bool

ShowRowNumber bool

Expand Down Expand Up @@ -320,6 +321,7 @@ func getConfigs(cmd *cobra.Command) Config {
Tabs: tabs,
OutTabs: getFlagBool(cmd, "out-tabs"),
NoHeaderRow: noHeaderRow,
NoOutHeader: getFlagBool(cmd, "no-out-header"),

ShowRowNumber: getFlagBool(cmd, "show-row-number"),

Expand Down
3 changes: 2 additions & 1 deletion csvtk/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Attention:
1. By default, csvtk assumes input files have header row, if not, switch flag "-H" on.
2. By default, csvtk handles CSV files, use flag "-t" for tab-delimited files.
3. Column names better be unique.
3. Column names should be unique.
4. By default, lines starting with "#" will be ignored, if the header row
starts with "#", please assign flag "-C" another rare symbol, e.g. '$'.
5. Do not mix use field (column) numbers and names to specify columns to operate.
Expand Down Expand Up @@ -140,6 +140,7 @@ func init() {
RootCmd.PersistentFlags().BoolP("tabs", "t", false, `specifies that the input CSV file is delimited with tabs. Overrides "-d"`)
RootCmd.PersistentFlags().BoolP("out-tabs", "T", false, `specifies that the output is delimited with tabs. Overrides "-D"`)
RootCmd.PersistentFlags().BoolP("no-header-row", "H", false, `specifies that the input CSV file does not have header row`)
RootCmd.PersistentFlags().BoolP("no-out-header", "U", false, `do not output header row`)
RootCmd.PersistentFlags().StringP("out-file", "o", "-", `out file ("-" for stdout, suffix .gz for gzipped out)`)

RootCmd.PersistentFlags().BoolP("show-row-number", "Z", false, `show row number as the first column, with header row skipped`)
Expand Down
4 changes: 2 additions & 2 deletions doc/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

1. By default, csvtk assumes input files have header row, if not, switch flag `-H` on.
2. By default, csvtk handles CSV files, use flag `-t` for tab-delimited files.
3. Column names better be unique.
3. Column names should be unique.
4. By default, lines starting with `#` will be ignored, if the header row
starts with `#`, please assign flag `-C` another rare symbol, e.g. `$`.
5. Do not mix use field (column) numbers and names to specify columns to operate.
Expand Down Expand Up @@ -135,7 +135,7 @@ Attention:
1. By default, csvtk assumes input files have header row, if not, switch flag "-H" on.
2. By default, csvtk handles CSV files, use flag "-t" for tab-delimited files.
3. Column names better be unique.
3. Column names should be unique.
4. By default, lines starting with "#" will be ignored, if the header row
starts with "#", please assign flag "-C" another rare symbol, e.g. '$'.
5. Do not mix use field (column) numbers and names to specify columns to operate.
Expand Down

0 comments on commit 0a5f0c6

Please sign in to comment.