accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1899) cli.Help should return non-zero status on error parsing args
Date Mon, 25 Nov 2013 04:19:35 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-1899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13831168#comment-13831168
] 

ASF subversion and git services commented on ACCUMULO-1899:
-----------------------------------------------------------

Commit 100e75bece15ad2d223070912854430d078e587a in branch refs/heads/master from [~mhaskel]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=100e75b ]

ACCUMULO-1899 exit with non-zero exit code if there's an error parsing the arguments.

Signed-off-by: Josh Elser <elserj@apache.org>


> cli.Help should return non-zero status on error parsing args
> ------------------------------------------------------------
>
>                 Key: ACCUMULO-1899
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1899
>             Project: Accumulo
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0
>            Reporter: Sean Busbey
>            Assignee: Morgan Haskel
>            Priority: Minor
>              Labels: newbie
>             Fix For: 1.5.1, 1.6.0
>
>         Attachments: ACCUMULO-1899.patch
>
>
> Right now org.apache.accumulo.core.cli.Help.parseArgs() uses System.exit(0) on parse
error.
> If the user gives invalid flags and triggers this code path, we should exit with non-zero
status to indicate a problem.
> Previously (in 1.4.x), not properly setting non-zero status for command line parse errors
caused some integration tests to fail silently for some time.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message