This commit is contained in:
Kovid Goyal 2025-07-10 08:20:16 +05:30
parent 96ba62f34e
commit 697805765e
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -49,10 +49,7 @@ func GenerateCompletions(args []string) error {
output_type = args[0]
args = args[1:]
}
n := len(args)
if n < 1 {
n = 1
}
n := max(1, len(args))
if output_type == "setup" {
if len(args) == 0 {
return fmt.Errorf("The shell must be specified")