Add --version flag to print version and exit.

This commit is contained in:
Leo R. Lundgren 2018-03-21 01:49:19 +01:00 committed by Zlatko Čalušić
parent a6961e877b
commit cbafb98113
3 changed files with 11 additions and 1 deletions

1
mux.go
View file

@ -25,6 +25,7 @@ var Config = struct {
PrivateRepos bool
Prometheus bool
Debug bool
Version bool
}{
Path: "/tmp/restic",
Listen: ":8000",