Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
codechenx committed Jul 23, 2020
1 parent 48bd61d commit 8a71793
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ go get -u github.com/codechenx/tv
--dc ints (optional) Only display certain columns(multiple arguments support, separated by comma)
--hc ints (optional) Do not display certain columns(multiple arguments support, separated by comma)
--fi int (optional) -1, Unfreeze first row and first column; 0, Freeze first row and first column; 1, Freeze first row; 2, Freeze first column [default: 0]
--tr (Bool) Transpose and view data
--tr (bool) Transpose and view data
-h, --help help for tv
-v, --version version for tv
```
Expand Down
2 changes: 1 addition & 1 deletion tv.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func main() {
RootCmd.Flags().IntSliceVar(&args.ShowNum, "dc", []int{}, "(optional) Only display certain columns(multiple parameter support, separated by comma)")
RootCmd.Flags().IntSliceVar(&args.HideNum, "hc", []int{}, "(optional) Do not display certain columns(multiple arguments support, separated by comma)")
RootCmd.Flags().IntVar(&args.Header, "fi", 0, "(optional) -1, Unfreeze first row and first column; 0, Freeze first row and first column; 1, Freeze first row; 2, Freeze first column [default: 0]")
RootCmd.Flags().BoolVar(&args.Transpose, "tr", false, "(Bool) Transpose and view data")
RootCmd.Flags().BoolVar(&args.Transpose, "tr", false, "(bool) Transpose and view data")
RootCmd.Flags().SortFlags = false
err := RootCmd.Execute()
fatalError(err)
Expand Down

0 comments on commit 8a71793

Please sign in to comment.