Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Nov 17, 2020
1 parent 95b957f commit 53d7374
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"strconv"
"strings"

Expand Down Expand Up @@ -548,8 +549,14 @@ func docx2md(arg string, embed bool) error {

func main() {
var embed bool
var showVersion bool
flag.BoolVar(&embed, "embed", false, "embed resources")
flag.BoolVar(&showVersion, "v", false, "Print the version")
flag.Parse()
if showVersion {
fmt.Printf("%s %s (rev: %s/%s)\n", name, version, revision, runtime.Version())
return
}
if flag.NArg() == 0 {
flag.Usage()
os.Exit(1)
Expand Down

0 comments on commit 53d7374

Please sign in to comment.