Fix unused regex

This commit is contained in:
Yogesh Lonkar 2019-08-05 20:22:52 +02:00
parent 2be2bc755e
commit 1db049685a
No known key found for this signature in database
GPG Key ID: A08E266247F12F6A

View File

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