Add basic test on -h for all the commands

This commit is contained in:
Eric Coissac
2025-03-08 16:28:06 +01:00
parent 65bd29b955
commit 78caabd2fd
34 changed files with 2872 additions and 3 deletions

View File

@ -76,7 +76,7 @@ func GenerateOptionParser(optionset ...func(*getoptions.GetOpt)) ArgumentParser
if options.Called("help") {
fmt.Fprint(os.Stderr, options.Help())
os.Exit(1)
os.Exit(0)
}
if options.Called("version") {

View File

@ -8,7 +8,7 @@ import (
// corresponds to the last commit, and not the one when the file will be
// commited
var _Commit = "b18c9b7"
var _Commit = "65bd29b"
var _Version = "Release 4.4.0"
// Version returns the version of the obitools package.