From 408830ec4ee57c76d5bb682aab539291b4685d69 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 10 Aug 2015 15:56:55 +0900 Subject: [PATCH] Clean up help output --- md2vim.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/md2vim.go b/md2vim.go index 3c9e9a2..842d78a 100644 --- a/md2vim.go +++ b/md2vim.go @@ -28,12 +28,13 @@ import ( "io/ioutil" "log" "os" + "path" "github.com/russross/blackfriday" ) 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, "Parameters:\n") flag.PrintDefaults()