From 00653aab1ea6d1bc227227da9e2195432f8fe52e Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 3 Jun 2024 00:17:36 +0100 Subject: better help text on invalid commands adding help again is a bad idea. code should never document itself; that's what documentation is for. so, make the code do a better job telling the user where to find documentation. Signed-off-by: Leah Rowe --- script/roms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/roms') diff --git a/script/roms b/script/roms index 7e5e1be6..ee48bc42 100755 --- a/script/roms +++ b/script/roms @@ -69,7 +69,7 @@ main() handle_serprog() { - [ -z "${1+x}" ] && $err "bad command. Check $projectname docs." + [ -z "${1+x}" ] && badcmd [ "$1" != "rp2040" ] && [ "$1" != "stm32" ] && $err "bad command" if [ "$1" = "rp2040" ]; then serprog_boards_dir="$picosdk/src/boards/include/boards" -- cgit v1.2.1