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>
1 parent bb064d3 commit fb310f588a1bc351d4e592a65f92887571f616de
@Enrico Jorns Enrico Jorns authored on 5 Aug 2016
Bastian Stender committed on 8 Aug 2016
Showing 1 changed file
View
src/barebox-state.c