GODT-1838: Fix also detect CLI mode with short flag
This commit is contained in:
parent
22a3549599
commit
4e47e7ac2a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue