copyright messgae and verbose mode
This commit is contained in:
parent
916f8b8795
commit
a3270f399d
12 changed files with 40 additions and 6 deletions
4
main.go
4
main.go
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue