diff --git a/main.go b/main.go index 2908389..e30c28b 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,8 @@ package main import ( "embed" + "flag" + "fmt" "github.com/labstack/gommon/log" "github.com/wailsapp/wails/v2" @@ -15,6 +17,13 @@ var assets embed.FS func main() { + showVersion := flag.Bool("version", false, "display version information") + flag.Parse() + if *showVersion { + fmt.Println("v0.1.0-alpha") + return + } + // Create an instance of the app structure app := NewApp()