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

@ -10,6 +10,14 @@
- Options **--fasta** or **--fastq** usable to specify input format were ignored. - Options **--fasta** or **--fastq** usable to specify input format were ignored.
They are now correctly considered They are now correctly considered
- The `obiannotate` command were crashing when a selection option was used but
no editing option.
- The `--fail-on-taxonomy` led to an error on merged taxa even when the
`--update-taxid` option was used.
- The `--compressed` option was not correctly named. It was renamed to `--compress`
### Enhancement ### Enhancement

View File

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

View File

@ -8,7 +8,7 @@ import (
// corresponds to the last commit, and not the one when the file will be // corresponds to the last commit, and not the one when the file will be
// commited // commited
var _Commit = "3b5d4ba" var _Commit = "f21f51a"
var _Version = "Release 4.4.0" var _Version = "Release 4.4.0"
// Version returns the version of the obitools package. // 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")) options.Description("Disable the progress bar printing"))
if compressed { if compressed {
options.BoolVar(obidefault.CompressedPtr(), "compressed", obidefault.CompressOutput(), options.BoolVar(obidefault.CompressOutputPtr(), "compress", obidefault.CompressOutput(),
options.Alias("Z"), options.Alias("Z"),
options.Description("Compress all the result using gzip")) options.Description("Compress all the result using gzip"))