barebox-state: return non-zero exit code for missing or invalid arg
This make barebox-state return non-zero exit-code in case of a missing parameter (':') or an invalid/unknown argument ('?'). No extra printing of error messages is performed as this is handled by getopt itself in this configuration. Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Tested-by: Bastian Stender <bst@pengutronix.de> |
---|
|
src/barebox-state.c |
---|