Fast Link Checker for Markdown and HTML in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
456 B

package main
import (
"fmt"
"os"
docopt "github.com/docopt/docopt-go"
)
func main() {
defer func() {
if r := recover(); r != nil {
fmt.Fprintln(os.Stderr, r.(error).Error())
os.Exit(1)
}
}()
getArgs()
}
func getArgs() map[string]interface{} {
usage := `Link checker for Markdown and HTML
Usage:
linkcheck <filename>`
args, err := docopt.Parse(usage, nil, true, "linkcheck", true)
if err != nil {
panic(err)
}
return args
}