EddyRivasLab / easel

Sequence analysis library used by Eddy/Rivas lab code
Other
46 stars 26 forks source link

Long options called ambiguous abbreviation, if a prefix of another option #10

Closed traviswheeler closed 7 years ago

traviswheeler commented 7 years ago

ID e4 TITLE Long options called ambiguous abbreviation, if a prefix of another option AFFECTS HMMER 3.0b3 (and earlier) FIXED_IN - STATUS CLOSED XREF J5/116 REPORTED_BY Maufrais Corinne maufrais@pasteur.fr; 27 Nov 2009 OPENED_DATE SRE, Tue Dec 1 11:24:43 2009 CLOSED_DATE SRE, Tue Dec 1 11:24:46 2009 DESCRIPTION
hmmsim --s gives "Failed to parse command line: Abbreviated option "--s" is ambiguous" because esl_getopts thinks --s is an abbreviation for --seed or --stall.

get_optidx_abbrev() revised to allow exact matches to long options. esl_getopts unit test revised to catch this bug.