mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-13 16:31:41 +08:00
Add staticcheck to CI (#171)
This commit is contained in:
6
main.go
6
main.go
@@ -92,13 +92,13 @@ func main() {
|
||||
p12FileFlag = flag.String("p12-file", "", "")
|
||||
)
|
||||
flag.Usage = func() {
|
||||
fmt.Fprintf(flag.CommandLine.Output(), shortUsage)
|
||||
fmt.Fprint(flag.CommandLine.Output(), shortUsage)
|
||||
fmt.Fprintln(flag.CommandLine.Output(), `For more options, run "mkcert -help".`)
|
||||
}
|
||||
flag.Parse()
|
||||
if *helpFlag {
|
||||
fmt.Fprintf(flag.CommandLine.Output(), shortUsage)
|
||||
fmt.Fprintf(flag.CommandLine.Output(), advancedUsage)
|
||||
fmt.Fprint(flag.CommandLine.Output(), shortUsage)
|
||||
fmt.Fprint(flag.CommandLine.Output(), advancedUsage)
|
||||
return
|
||||
}
|
||||
if *carootFlag {
|
||||
|
Reference in New Issue
Block a user