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

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

Commit 100e75bece15ad2d223070912854430d078e587a in branch 
refs/heads/1.6.0-SNAPSHOT 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 <[email protected]>


> 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)

Reply via email to