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