startup version

This commit is contained in:
shoopea 2021-11-14 12:23:53 +08:00
parent d9c3eac4b6
commit 2704149a16

View File

@ -2,6 +2,7 @@ package main
import ( import (
"flag" "flag"
"fmt"
"log" "log"
"os" "os"
) )
@ -19,6 +20,8 @@ var (
func main() { func main() {
flag.Parse() flag.Parse()
fmt.Printf("backup (%s)\n", version)
err := cfg.Load() err := cfg.Load()
if err != nil { if err != nil {
log.Printf("Cannot load config (%s)", err) log.Printf("Cannot load config (%s)", err)