File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ _testmain.go
2626doc /site /*
2727* .Rhistory
2828csvtk /csvtk *
29+ csvtk /tsvtk
2930csvtk /binaries *
3031doc /site
3132* ssshtest
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ func getConfigs(cmd *cobra.Command) Config {
305305 var tabs bool
306306 if val = os .Getenv ("CSVTK_T" ); val != "" {
307307 tabs = isTrue (val )
308- } else if os .Args [0 ] == "tsvtk" {
308+ } else if filepath . Base ( os .Args [0 ]) == "tsvtk" {
309309 tabs = true
310310 } else {
311311 tabs = getFlagBool (cmd , "tabs" )
Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ Environment variables for frequently used global flags:
7474 - "CSVTK_H" for flag "-H/--no-header-row"
7575 - "CSVTK_QUIET" for flag "--quiet"
7676
77+ You can also create a symbolic link named "tsvtk" to csvtk, or simply create a copy
78+ of the executable called "tsvtk". When invoked as "tsvtk", csvtk will automatically
79+ enable the "-t/--tabs" flag.
80+
7781` , VERSION ),
7882
7983 Run : func (cmd * cobra.Command , args []string ) {
Original file line number Diff line number Diff line change @@ -85,4 +85,6 @@ Environment variables for frequently used global flags:
8585 - ` CSVTK_H ` for flag ` -H/--no-header-row `
8686 - ` CSVTK_QUIET ` for flag ` --quiet `
8787
88- You can also create a soft link named ` tsvtk ` for ` csvtk ` , which sets ` -t/--tabs ` by default.
88+ You can also create a symbolic link named ` tsvtk ` to ` csvtk ` , or simply create a copy
89+ of the executable called ` tsvtk ` . When invoked as ` tsvtk ` , ` csvtk ` will automatically
90+ enable the ` -t/--tabs ` flag.
Original file line number Diff line number Diff line change @@ -175,6 +175,10 @@ Environment variables for frequently used global flags:
175175 - "CSVTK_T" for flag "-t/--tabs"
176176 - "CSVTK_H" for flag "-H/--no-header-row"
177177 - "CSVTK_QUIET" for flag "--quiet"
178+
179+ You can also create a symbolic link named "tsvtk" to csvtk, or simply create a copy
180+ of the executable called "tsvtk". When invoked as "tsvtk", csvtk will automatically
181+ enable the "-t/--tabs" flag.
178182
179183Usage:
180184 csvtk [flags]
You can’t perform that action at this time.
0 commit comments