Skip to content

Commit

Permalink
update readme to mention custom separator, improved --separator help …
Browse files Browse the repository at this point in the history
…message
  • Loading branch information
xiorcal authored and aswinkarthik committed Oct 24, 2019
1 parent 71de2b0 commit 468af98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Flags:
--ignore-columns ints Inverse of --columns flag. This cannot be used if --columns are specified
--include ints Include positions in CSV to display Eg: 1,2. Default is entire row
-p, --primary-key ints Primary key positions of the Input CSV as comma separated values Eg: 1,2 (default [0])
-s, --separator string use specific separator (\t, or any one character string) (default ",")
--time Measure time
-t, --toggle Help message for toggle
--version version for csvdiff
Expand Down Expand Up @@ -99,10 +100,10 @@ go get -u github.com/aswinkarthik/csvdiff
- Additions
- Modifications
- Deletions
- Non comma separators
## Not Supported
- Non comma separators
- Cannot be used as a generic difftool. Requires a column to be used as a primary key from the csv.
## Formats
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func init() {
rootCmd.Flags().IntSliceVarP(&ignoreValueColumnPositions, "ignore-columns", "", []int{}, "Inverse of --columns flag. This cannot be used if --columns are specified")
rootCmd.Flags().IntSliceVarP(&includeColumnPositions, "include", "", []int{}, "Include positions in CSV to display Eg: 1,2. Default is entire row")
rootCmd.Flags().StringVarP(&format, "format", "o", "diff", fmt.Sprintf("Available (%s)", strings.Join(allFormats, "|")))
rootCmd.Flags().StringVarP(&separator, "separator", "s", ",", "use specific separator")
rootCmd.Flags().StringVarP(&separator, "separator", "s", ",", "use specific separator (\\t, or any one character string)")

rootCmd.Flags().BoolVarP(&timed, "time", "", false, "Measure time")
}
Expand Down

0 comments on commit 468af98

Please sign in to comment.