MantisBT - Rosetta
View Issue Details
0000127Rosetta[All Projects] Bad Codingpublic2012-10-07 19:232012-10-08 11:29
All platformsAnyAny
all applications
Feature Request, Confirmed As Bug
0000127: Options that do not begin with - are silently ignored by flag file parser
imagine a flag file that looks like this:

   bar 5

instead of

   -bar 5

The option -foo:bar 5 will be silently ignored. In a long flags file this can result in errors that occur silently and are extremely difficult to catch by eye.

I suspect that anything without a dash is being treated as a comment. instead, we should treat anything starting with # as a comment, and reject arbitrary text. This will remove this class of typo bug at very little cost to the usability and readability of Rosetta.

I'm listing this as a feature request, because it is one, basically.

No tags attached.
Issue History
2012-10-07 19:23delucaslNew Issue
2012-10-07 19:23delucaslStatusnew => assigned
2012-10-07 19:23delucaslAssigned To => delucasl
2012-10-08 08:47smlewisNote Added: 0000116
2012-10-08 11:29delucaslFixed in SVN Version => 51547
2012-10-08 11:29delucaslNote Added: 0000117
2012-10-08 11:29delucaslStatusassigned => resolved
2012-10-08 11:29delucaslResolutionopen => fixed

2012-10-08 08:47   
Joe (hajosep) hit this recently too. Adding "DIE DIE DIE DIE" to an options file effect.
2012-10-08 11:29   
lines that don't start with '@','-' or '#' result in n EXCN_Msg_Exception being thrown