summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--complete.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/complete.go b/complete.go
index 03440b2..b24827d 100644
--- a/complete.go
+++ b/complete.go
@@ -223,7 +223,7 @@ func parseArgv(argname string) *Auto {
}
if len(os.Args) > 1 && os.Args[1] == "--version" {
- if myAuto.buildtime == nil {
+ if myAuto.buildtime != nil {
// if binary defined buildtime() then process standard version output here
doVersion(pb)
os.Exit(0)