Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000127Rosetta[All Projects] Bad Codingpublic2012-10-07 19:232012-10-08 11:29
Assigned Todelucasl 
PlatformAll platformsOSAnyOS VersionAny
Product VersionTrunk 
Fixed in Version 
Summary0000127: Options that do not begin with - are silently ignored by flag file parser
Descriptionimagine 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.

TagsNo tags attached.
Application(s) Affectedall applications
Command Line Usedanything
Developer OptionsFeature Request, Confirmed As Bug
Fixed in SVN Version51547
Attached Files

- Relationships

-  Notes
smlewis (Administrator)
2012-10-08 08:47

Joe (hajosep) hit this recently too. Adding "DIE DIE DIE DIE" to an options file effect.
delucasl (Administrator)
2012-10-08 11:29

lines that don't start with '@','-' or '#' result in n EXCN_Msg_Exception being thrown

- Issue History
Date Modified Username Field Change
2012-10-07 19:23 delucasl New Issue
2012-10-07 19:23 delucasl Status new => assigned
2012-10-07 19:23 delucasl Assigned To => delucasl
2012-10-08 08:47 smlewis Note Added: 0000116
2012-10-08 11:29 delucasl Fixed in SVN Version => 51547
2012-10-08 11:29 delucasl Note Added: 0000117
2012-10-08 11:29 delucasl Status assigned => resolved
2012-10-08 11:29 delucasl Resolution open => fixed

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker