TC: fix naming

Signed-off-by: ThedosiouTh <thanosthd@gmail.com>
This commit is contained in:
ThedosiouTh 2022-05-28 11:39:48 +03:00
parent 40f0dbd971
commit 9542bdf445
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ func getStringFlags() []string {
}
}
var argToActualFlag = map[string]string{
var argToActualArgument = map[string]string{
"--verbose": "--debug",
// docker cli has deprecated -h to avoid ambiguity with -H, while docker-compose still support it
"-h": "--help",
@ -67,8 +67,8 @@ func Convert(args []string) []string {
command = append(command, args[i:]...)
break
}
if actualFlag, ok := argToActualFlag[arg]; ok {
arg = actualFlag
if actualArgument, ok := argToActualArgument[arg]; ok {
arg = actualArgument
}
if contains(getBoolFlags(), arg) {
rootFlags = append(rootFlags, arg)