about summary refs log tree commit diff stats
path: root/searchix.go
diff options
context:
space:
mode:
Diffstat (limited to 'searchix.go')
-rw-r--r--searchix.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/searchix.go b/searchix.go
index 6a984ee..ba33e3f 100644
--- a/searchix.go
+++ b/searchix.go
@@ -52,7 +52,11 @@ func nextOccurrenceOfLocalTime(t toml.LocalTime) time.Time {
 func main() {
 	flag.Parse()
 	if *version {
-		fmt.Fprintln(os.Stderr, "searchix", buildVersion, config.CommitSHA)
+		fmt.Fprintf(os.Stderr, "searchix %s", buildVersion)
+		if buildVersion != config.CommitSHA && buildVersion != config.ShortSHA {
+			fmt.Fprintf(os.Stderr, " %s", config.CommitSHA)
+		}
+		fmt.Fprint(os.Stderr, "\n")
 		os.Exit(0)
 	}