mirror of https://github.com/docker/compose.git
TC: fix naming
Signed-off-by: ThedosiouTh <thanosthd@gmail.com>
This commit is contained in:
parent
40f0dbd971
commit
9542bdf445
|
@ -43,7 +43,7 @@ func getStringFlags() []string {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var argToActualFlag = map[string]string{
|
var argToActualArgument = map[string]string{
|
||||||
"--verbose": "--debug",
|
"--verbose": "--debug",
|
||||||
// docker cli has deprecated -h to avoid ambiguity with -H, while docker-compose still support it
|
// docker cli has deprecated -h to avoid ambiguity with -H, while docker-compose still support it
|
||||||
"-h": "--help",
|
"-h": "--help",
|
||||||
|
@ -67,8 +67,8 @@ func Convert(args []string) []string {
|
||||||
command = append(command, args[i:]...)
|
command = append(command, args[i:]...)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if actualFlag, ok := argToActualFlag[arg]; ok {
|
if actualArgument, ok := argToActualArgument[arg]; ok {
|
||||||
arg = actualFlag
|
arg = actualArgument
|
||||||
}
|
}
|
||||||
if contains(getBoolFlags(), arg) {
|
if contains(getBoolFlags(), arg) {
|
||||||
rootFlags = append(rootFlags, arg)
|
rootFlags = append(rootFlags, arg)
|
||||||
|
|
Loading…
Reference in New Issue