copyright messgae and verbose mode

This commit is contained in:
ston1th 2017-04-06 21:14:48 +02:00
commit a3270f399d
12 changed files with 40 additions and 6 deletions

View file

@ -1,3 +1,5 @@
// Copyright (C) 2017 Marius Schellenberger
//go:generate ./templates.sh
package main
@ -48,6 +50,7 @@ var (
dump bool
restore bool
verbose bool
)
func main() {
@ -59,6 +62,7 @@ func main() {
flag.BoolVar(&secureCookie, "s", false, "enable secure cookie")
flag.BoolVar(&dump, "dump", false, "create a json dump of all articles in the data directory (dump is written to stdout)")
flag.BoolVar(&restore, "restore", false, "restore a json dump to the data directory (dump is read from stdin)")
flag.BoolVar(&verbose, "v", false, "enable verbose dump/restore mode")
flag.Parse()
err := os.Chdir(datadir)