]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm/main.go
Update copyright years
[safcm/safcm.git] / cmd / safcm / main.go
index 5916b848060a583d30c8e9208d948e01511926e0..1401e35d308d88589905c9e6f0f34f0ffd7856ff 100644 (file)
@@ -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 [<options>] <host|group...>\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()
        }