Two small corrections on options

This commit is contained in:
Eric Coissac
2025-01-07 11:51:37 +01:00
parent 67c0d00a4d
commit c58d9772ac
3 changed files with 6 additions and 8 deletions

View File

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

View File

@ -67,11 +67,6 @@ func TaxonomySelectionOptionSet(options *getoptions.GetOpt) {
}
func SequenceSelectionOptionSet(options *getoptions.GetOpt) {
TaxonomySelectionOptionSet(options)
options.StringVar(&_SaveRejected, "save-discarded", _SaveRejected,
options.ArgName("FILENAME"),
options.Description("Indicates in which file not selected sequences must be saved."))
options.StringVar(&_IdList, "id-list", _IdList,
options.ArgName("FILENAME"),
options.Description("<FILENAME> points to a text file containing the list of sequence record identifiers to be selected."+
@ -168,6 +163,10 @@ func SequenceSelectionOptionSet(options *getoptions.GetOpt) {
func OptionSet(options *getoptions.GetOpt) {
obiconvert.OptionSet(options)
SequenceSelectionOptionSet(options)
options.StringVar(&_SaveRejected, "save-discarded", _SaveRejected,
options.ArgName("FILENAME"),
options.Description("Indicates in which file not selected sequences must be saved."))
}
func CLIMinSequenceLength() int {

View File

@ -17,8 +17,7 @@ func ScriptOptionSet(options *getoptions.GetOpt) {
options.StringVar(&_script, "script", _script,
options.Description("The script to execute."),
options.Alias("S"),
options.Description("Name of a map attribute."))
options.Alias("S"))
options.BoolVar(&_askTemplate, "template", _askTemplate,
options.Description("Print on the standard output a script template."),