[JIRA] Commented: (MDA-39) Improve Command Line Interface
Ian Young (JIRA)
noreply at shibboleth.net
Tue Sep 20 18:01:25 BST 2011
[ https://issues.shibboleth.net/jira/browse/MDA-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13573#comment-13573 ]
Ian Young commented on MDA-39:
------------------------------
Treating this as an omnibus "improve the CLI" sink...
I'd like to have a way of terminating the CLI by throwing an exception without ending up with a stack trace.
At the moment, I throw a custom subclass of StageProcessingException called ...TerminationException, which is handled by the CLI like this:
} catch (Exception e) {
log.error("Error processing information", e);
System.exit(1);
}
This results in a stack dump, which isn't very "CLI-ish" to me. I think what I'd prefer would be for the CLI to know about a specific Exception of its own that I could throw to get the log.error and System.exit but without the stack dump. It would probably also have to be a subclass of StageProcessingException in order to propagate through the rest of the system properly. I suggest net.shibboleth.metadata.pipeline.TerminationException.
> Improve Command Line Interface
> ------------------------------
>
> Key: MDA-39
> URL: https://issues.shibboleth.net/jira/browse/MDA-39
> Project: Metadata Aggregator
> Issue Type: Improvement
> Components: Command Line
> Affects Versions: 0.6
> Reporter: Chad La Joie
> Assignee: Chad La Joie
> Fix For: 0.7
>
>
> To date the command line has been very simplistic, improve it in the following ways:
> * provide a help command that outputs the parameters supported by the CLI
> * allow Spring environment variables, which may then be used in the config files, to be set on the command line
> * allow for silent and verbose logging options
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the commits
mailing list