#83 Running "gap5 -h" gives internal tcl error

closed-fixed
Gap5 (15)
5
2010-10-07
2010-10-07
No

When I run "gap5 --help" it gives me friendly help.
When I run "gap5 -x" it tells me it is an invalid option, and gives me the help.
When I run "gap5 -h" it gets angry at me :-) see below:

invalid command name "verror"
while executing
"verror ERR_FATAL "Gap5" {Usage: gap5 [-ro] [-maxseq <number>] [-maxdb <number>] [-skip_notes] [NAME.V]}"
(procedure "gap5_usage" line 2)
invoked from within
"gap5_usage"
invoked from within
"if {[lindex $argv 0] == "-h" || [lindex $argv 1] == "-help" || [lindex $argv 1] == "--help"} {
gap5_usage
}"
(file "/bio/sw/staden/bin/../share/staden/tcl/gap5/gap.tcl" line 34)

Discussion

  • James Bonfield

    James Bonfield - 2010-10-07

    This one at least is easy to fix, althjough I'm a bit baffled why verror sometimes exists and sometimes doesn't. Glossing over that though, the bug is in the quoted text - "[lindex $argv 0]" instead of "[lindex $argv 1]". The latest src/gap5/gap.tcl file has been patched in SVN too.

    Thanks for the bug report.

    James

     
  • James Bonfield

    James Bonfield - 2010-10-07
    • status: open --> closed-fixed
     

Log in to post a comment.