X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm%2Fmain.go;h=b20e5cb84ee457ee25ab96ed8ff9ccb07702aa7b;hb=7181f7906e7fb6e73ebc0daa46975bfa9c71478f;hp=5916b848060a583d30c8e9208d948e01511926e0;hpb=f2f2bc47e8729548f3c10117f7f008b547c4afc5;p=safcm%2Fsafcm.git diff --git a/cmd/safcm/main.go b/cmd/safcm/main.go index 5916b84..b20e5cb 100644 --- a/cmd/safcm/main.go +++ b/cmd/safcm/main.go @@ -1,6 +1,6 @@ // Command line tool to manage remote hosts -// Copyright (C) 2021 Simon Ruderich +// Copyright (C) 2021-2024 Simon Ruderich // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -28,6 +28,7 @@ func usage() { log.SetFlags(0) log.Fatalf("usage: %[1]s sync [] \n"+ " %[1]s fixperms\n"+ + " %[1]s version\n"+ "", os.Args[0]) } @@ -45,6 +46,11 @@ func main() { usage() } err = MainFixperms() + case "version": + if len(os.Args) != 2 { + usage() + } + err = MainVersion() default: usage() }