1
0

Added version var to clean util as well.

This commit is contained in:
Alexander Andreev 2023-04-24 01:05:07 +04:00
parent 2405b129e2
commit 23d7fd882c
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -16,11 +16,13 @@ import (
var configPath *string = flag.String("conf", "config.yaml", "path to configuration file") var configPath *string = flag.String("conf", "config.yaml", "path to configuration file")
var showVersion *bool = flag.Bool("v", false, "show version") var showVersion *bool = flag.Bool("v", false, "show version")
var version string
func main() { func main() {
flag.Parse() flag.Parse()
if *showVersion { if *showVersion {
fmt.Println("dwelling-upload-clean Ver. 23.10.0\nCopyright (c) 2022,2023 Alexander \"Arav\" Andreev <me@arav.su>") fmt.Println("dwelling-upload-clean Ver. ", version, "\nCopyright (c) 2022,2023 Alexander \"Arav\" Andreev <me@arav.su>")
return return
} }