Fix unused regex

main
Yogesh Lonkar 5 years ago
parent 2be2bc755e
commit 1db049685a
No known key found for this signature in database
GPG Key ID: A08E266247F12F6A

@ -4,7 +4,6 @@ import (
"fmt" "fmt"
"io" "io"
"os" "os"
"regexp"
"strings" "strings"
"text/tabwriter" "text/tabwriter"
"text/template" "text/template"
@ -157,8 +156,6 @@ func ShowAppHelp(c *Context) (err error) {
return nil return nil
} }
var shortFlagRegex = regexp.MustCompile(`^-`)
// DefaultAppComplete prints the list of subcommands as the default app completion method // DefaultAppComplete prints the list of subcommands as the default app completion method
func DefaultAppComplete(c *Context) { func DefaultAppComplete(c *Context) {
DefaultCompleteWithFlags(nil)(c) DefaultCompleteWithFlags(nil)(c)

Loading…
Cancel
Save