diff --git a/main.go b/main.go index 3151429..c33557c 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,16 @@ import ( "github.com/alecthomas/repr" ) +const VERSION = `v0.0.3` + func main() { + if len(os.Args) > 1 { + if os.Args[1] == "-v" { + fmt.Printf("This is sway-descratch version %s\n", VERSION) + os.Exit(0) + } + } + // we need a session to sway via IPC ipc := swayipc.NewSwayIPC()