accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morgan Haskel (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ACCUMULO-1899) cli.Help should return non-zero status on error parsing args
Date Mon, 25 Nov 2013 03:53:35 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-1899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Morgan Haskel updated ACCUMULO-1899:
------------------------------------

    Status: Patch Available  (was: Open)

The attached patch against 1.5.1-SNAPSHOT will make it exit with status 1 if there's an issue
parsing the arguments.

> 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
>            Priority: Minor
>              Labels: newbie
>         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