diff options
Diffstat (limited to 'cmd/datamaps/main.go')
-rw-r--r-- | cmd/datamaps/main.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/datamaps/main.go b/cmd/datamaps/main.go index dc87f4f..66f78a0 100644 --- a/cmd/datamaps/main.go +++ b/cmd/datamaps/main.go @@ -12,12 +12,15 @@ import ( ) func main() { + opts := datamaps.ParseOptions() + if opts.Command == "help" { + os.Stdout.WriteString(datamaps.Usage) + os.Exit(0) + } dbpc := datamaps.NewDBPathChecker(os.UserConfigDir) if !dbpc.Check() { datamaps.SetUp() } - opts := datamaps.ParseOptions() - switch opts.Command { case "import": if err := datamaps.ImportToDB(opts); err != nil { |