commands: exit on invalid option
Barebox commands should not perform any action and return 0 if an
invalid parameter was given. This might cause undetected unintended
behvaior when calling commands with wrong options, either manually or
from a script.

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a38b701 commit 9cd9d98300af3039db7f146a47914baef2e8ea1b
@Enrico Jorns Enrico Jorns authored on 12 Sep 2016
Sascha Hauer committed on 16 Sep 2016
Showing 17 changed files
View
commands/boot.c
View
commands/bootm.c
View
commands/dhcp.c
View
commands/fbtest.c
View
commands/hashsum.c
View
commands/help.c
View
commands/hwclock.c
View
commands/linux16.c
View
commands/loadb.c
View
commands/loadxy.c
View
commands/ls.c
View
commands/mem.c
View
commands/menutree.c
View
commands/reset.c
View
commands/splash.c
View
commands/usb.c
View
commands/usbserial.c