Fix version flag

This commit is contained in:
aditya-K2
2023-05-24 03:18:47 +05:30
parent ad389a6f35
commit 951abd116f

View File

@@ -48,6 +48,7 @@ func ReadConfig() {
if Flags.Version { if Flags.Version {
fmt.Printf("gspt %s \nBuild Date: %s\n", Version, BuildDate) fmt.Printf("gspt %s \nBuild Date: %s\n", Version, BuildDate)
os.Exit(0)
} }
// If config path is provided through command-line use that // If config path is provided through command-line use that