X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm%2Fmain.go;h=1401e35d308d88589905c9e6f0f34f0ffd7856ff;hb=791f34212ebd19a9c79c9bd1157f590f4b24f5c2;hp=5916b848060a583d30c8e9208d948e01511926e0;hpb=f2f2bc47e8729548f3c10117f7f008b547c4afc5;p=safcm%2Fsafcm.git diff --git a/cmd/safcm/main.go b/cmd/safcm/main.go index 5916b84..1401e35 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-2022 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() }