Skip to content

Commit 1395f17

Browse files
committed
Fix description
1 parent 6fb1b46 commit 1395f17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

checkenv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func AddValueQuotes(val string, showQuotes bool) string {
6565
return val
6666
}
6767

68-
// Cut off the path and return only the value after the '/'.
68+
// Cut off the path and return only the key after the '/'.
6969
func RemoveKeyPath(key string, removePath bool) string {
7070
if removePath {
7171
valSlice := strings.Split(key, "/")
@@ -87,7 +87,7 @@ func main() {
8787
showFlags.BoolVar(showHelp, "help", false, "Use this flag if you want help with this command")
8888
showExport := showFlags.Bool("export", false, "Use this flag to prepend and \"export \" before every environment variable definition")
8989
showQuotes := showFlags.Bool("quotes", false, "Use this flag to put value in quotes")
90-
showRemovePath := showFlags.Bool("remove-path", false, "Use this flag to cut off the path and return only the value after the '/'")
90+
showRemovePath := showFlags.Bool("remove-path", false, "Use this flag to cut off the path and return only the key after the '/'")
9191
showRaw := showFlags.Bool("raw", false, "Use this flag to prevent comments output")
9292
showValue := showFlags.Bool("value", false, "Print value only")
9393
showName := showFlags.Bool("name", false, "Print name only")

0 commit comments

Comments
 (0)