diff --git a/server/templates/tags.html b/server/templates/tags.html index dce68e78..37a5375b 100644 --- a/server/templates/tags.html +++ b/server/templates/tags.html @@ -25,14 +25,14 @@ {{ range $key, $value := .Repositories }} - + {{if $.HasVulns}}{{end}} {{ $value.Name }} - + {{if $.HasVulns}}{{end}} - + {{if $.HasVulns}}{{end}} {{ $value.Tag }} - + {{if $.HasVulns}}{{end}} {{ $value.Created.Format "02 Jan, 2006 15:04:05 UTC" }} diff --git a/vendor/github.com/genuinetools/pkg/cli/cli.go b/vendor/github.com/genuinetools/pkg/cli/cli.go index 32866134..9e409a20 100644 --- a/vendor/github.com/genuinetools/pkg/cli/cli.go +++ b/vendor/github.com/genuinetools/pkg/cli/cli.go @@ -289,6 +289,12 @@ func resetFlagUsage(fs *flag.FlagSet) { defValue = "" } + // Add a double dash if the name is only one character long. + name := f.Name + if len(f.Name) > 1 { + name = "-" + name + } + fmt.Fprintf(flagWriter, "\t-%s\t%s (default: %s)\n", f.Name, f.Usage, defValue) })