feat(param): expand reviewed IM parameter normalization

This commit is contained in:
克谨 committed 2026-07-29 10:02:27 +08:00
1 parent 4db117893e
commit bfd53df9b2
16 files changed
+2314 -138

No files matched your search

-3
View File
@@ -139,9 +139,6 @@ func persistentFlagToken(flags *pflag.FlagSet, argument string) (*pflag.Flag, bo
}
body := strings.TrimPrefix(argument, "-")
if body == "" {
return nil, false, false
}
shorthands := []rune(body)
for index, shorthand := range shorthands {
flag := flags.ShorthandLookup(string(shorthand))