Calls the utility using a set of options. @param options the options to call with. @return the error code.
(Options options)
| 1526 | * @return the error code. |
| 1527 | */ |
| 1528 | public static int call(Options options) |
| 1529 | { |
| 1530 | try { |
| 1531 | return (int)(asCallable(options).call()); |
| 1532 | } catch (Exception e) { |
| 1533 | e.printStackTrace(options.stderr); |
| 1534 | return ERROR_UNKNOWN; |
| 1535 | } |
| 1536 | } |
| 1537 | |
| 1538 | /** |
| 1539 | * Creates a {@link Callable} for this utility. |
no test coverage detected