@@ -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 '/'.
6969func 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