Issue Details (XML | Word | Printable)

Key: CLI-86
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Ittay Dror
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons CLI

More structured exceptions

Created: 15/Aug/05 02:52 PM   Updated: 24/Jul/08 11:02 PM
Return to search
Component/s: CLI-1.x
Affects Version/s: 1.0
Fix Version/s: 1.2

Time Tracking:
Not Specified

Bugzilla Id: 36190
Resolution Date: 12/Jul/06 02:08 PM


 Description  « Hide
Currently exceptions are not structured. When one is thrown, from parsing, only
the message can be used, which means that if i want to print an error to the
user i must use the message as is, which sometimes doesn't fit.

The offending Option/OptionGroup should be in some exceptions.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henri Yandell added a comment - 10/Jul/06 01:51 PM
Seems like a very good feature - worth being in 2.0 I think. Thoughts?

Henri Yandell added a comment - 12/Jul/06 02:08 PM
If you look at:

http://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/OptionException.java

You'll see that the exception in CLI 2 appears to have what you want. If not, please feel free to re-open the issue.


Emmanuel Bourg added a comment - 24/Jul/08 11:02 PM
Moving to CLI 1.x since it has been implemented there.