Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000226Rosetta[All Projects] Input Handlingpublic2013-03-21 12:152013-03-21 15:08
Reportersmlewis 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Fixed in Version 
Summary0000226: Feature Request: catch option-system throws locally; handle them somewhat more fancily
DescriptionMike Tyka added the feature for the option system to throw exceptions for erroneous options. This feature request is to extend that a bit.

There are (at least) two types of bad options:

A) Correct but insufficiently specific option (did you mean -packing:repack_only, or -somethingelse:repack_only?)

B) Never-correct options (-this_option_does_not_exist)

For exception type A (some exception subclass), print a message of what the other choices are (this code already exists), then re-throw for a potential re-handing at executable level.

For B (different exception class), print whatever -help would print, then re-throw for the executable to handle if it can.

We need to re-throw in all cases because A) our all-executables-catch test depends on catching a badly formatted option and B) the executable may know much more about what options were meant than we do in core::init.
TagsNo tags attached.
Application(s) Affectedexception handling
Command Line Usedexception handling
Developer OptionsFeature Request
Fixed in SVN Version
Attached Files

- Relationships
related to 0000200new When given a bad option on the command line print what is usually displayed with -help 
related to 0000168resolvedmtyka Bad option reads throw uncaught exceptions 
related to 0000189resolvedrenfrew Turn on EXIT_THROWS_EXCEPTION by default 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-03-21 12:15 smlewis New Issue
2013-03-21 12:16 smlewis Relationship added related to 0000200
2013-03-21 12:16 smlewis Relationship added related to 0000168
2013-03-21 12:16 smlewis Relationship added related to 0000189


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker