Skip to content

Commit dc3a61f

Browse files
committed
dcrtime_dumpdb: Default to dumping JSON
Restoring requires the JSON dump, so default to dumping to JSON. Use -json=false to dump human readable output.
1 parent 0418c83 commit dc3a61f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/dcrtime_dumpdb/dcrtime_dumpdb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ var (
1515
defaultHomeDir = dcrutil.AppDataDir("dcrtimed", false)
1616

1717
destination = flag.String("destination", "", "Restore destination")
18-
dumpJSON = flag.Bool("json", false, "Dump JSON")
19-
restore = flag.Bool("restore", false, "Restore backend, -destination is required")
18+
dumpJSON = flag.Bool("json", true, "Dump JSON")
19+
restore = flag.Bool("restore", false, "Restore backend from JSON dump, -destination is required")
2020
fsRoot = flag.String("source", "", "Source directory")
2121
testnet = flag.Bool("testnet", false, "Use testnet port")
2222
)

0 commit comments

Comments
 (0)