diff options
Diffstat (limited to 'parseOsArgs.go')
| -rw-r--r-- | parseOsArgs.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/parseOsArgs.go b/parseOsArgs.go index c91c1e5..4959944 100644 --- a/parseOsArgs.go +++ b/parseOsArgs.go @@ -66,11 +66,9 @@ func parseArgv(argname string) *Argv { // print the version and exit if len(os.Args) > 1 && os.Args[1] == "--version" { - if me.buildtime != nil { - // if binary defined buildtime() then process standard version output here - doVersion(pb) - os.Exit(0) - } + // if binary defined buildtime() then process standard version output here + doVersion(pb) + os.Exit(0) } if os.Args[1] != "--auto-complete" { |
