GODT-1838: Fix also detect CLI mode with short flag

This commit is contained in:
Romain LE JEUNE 2022-09-05 15:49:38 +02:00
parent 22a3549599
commit 4e47e7ac2a
No known key found for this signature in database
GPG Key ID: 664A57E2F9CD8118
1 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ const (
guiName = "proton-bridge"
FlagCLI = "--cli"
FlagCLIShort = "-c"
FlagLauncher = "--launcher"
FlagWait = "--wait"
)
@ -165,7 +166,7 @@ func appendLauncherPath(path string, args []string) []string {
}
func inCLIMode(args []string) bool {
return sliceContains(args, FlagCLI)
return sliceContains(args, FlagCLI) || sliceContains(args, FlagCLIShort)
}
// sliceContains checks if a value is present in a list.