Clean up help output

This commit is contained in:
Alex Yatskov 2015-08-10 15:56:55 +09:00
parent 499a28be57
commit 408830ec4e

View File

@ -28,12 +28,13 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"os" "os"
"path"
"github.com/russross/blackfriday" "github.com/russross/blackfriday"
) )
func usage() { func usage() {
fmt.Fprintf(os.Stderr, "Usage: %s [options] input output\n", os.Args[0]) fmt.Fprintf(os.Stderr, "Usage: %s [options] input output\n", path.Base(os.Args[0]))
fmt.Fprintf(os.Stderr, "http://foosoft.net/projects/md2vim/\n\n") fmt.Fprintf(os.Stderr, "http://foosoft.net/projects/md2vim/\n\n")
fmt.Fprintf(os.Stderr, "Parameters:\n") fmt.Fprintf(os.Stderr, "Parameters:\n")
flag.PrintDefaults() flag.PrintDefaults()