update the compress option name

This commit is contained in:
Eric Coissac
2025-03-11 17:14:40 +01:00
parent f21f51ae62
commit 62e5a93492
4 changed files with 15 additions and 7 deletions

View File

@ -1,15 +1,15 @@
package obidefault
var __compressed__ = false
var __compress__ = false
func CompressOutput() bool {
return __compressed__
return __compress__
}
func SetCompressOutput(b bool) {
__compressed__ = b
__compress__ = b
}
func CompressedPtr() *bool {
return &__compressed__
func CompressOutputPtr() *bool {
return &__compress__
}

View File

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

View File

@ -80,7 +80,7 @@ func OutputModeOptionSet(options *getoptions.GetOpt, compressed bool) {
options.Description("Disable the progress bar printing"))
if compressed {
options.BoolVar(obidefault.CompressedPtr(), "compressed", obidefault.CompressOutput(),
options.BoolVar(obidefault.CompressOutputPtr(), "compress", obidefault.CompressOutput(),
options.Alias("Z"),
options.Description("Compress all the result using gzip"))