Fixed condition in the flagIsSet function.
This commit is contained in:
parent
604884f69b
commit
bebebac341
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -24,7 +24,7 @@ var goFS embed.FS
|
|||
|
||||
func flagIsSet(arg string, sfortFlag string) bool {
|
||||
if len(arg)>1 {
|
||||
if arg[0] == "-"[0] && arg[1] != "-"[0] {
|
||||
if arg[0] == "-"[0] && arg[1] != "-"[0] && arg[2] != "="[0] {
|
||||
return strings.Contains(arg, sfortFlag)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue