Skip to contentSkip to conversation

kconfig: config script: add a little user help

PATCH In review Randy Dunlap 3 participants 3 messages Dec 19, 2020 – Apr 2, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 kconfig: config script: add a little user help

Give the user a clue about the problem along with the 35 lines of usage/help text.

---
v2: spell out "command" & send to STDERR; (Yamada-san)

 scripts/config |    1 +
 1 file changed, 1 insertion(+)
scripts/config +1 -0
@@ -223,6 +223,7 @@ while [ "$1" != "" ] ; do
 		;;
 
 	*)
+		echo "bad command: $CMD" >&2
 		usage
 		;;
 	esac
#1 lore raw
Quoted 10 lines · Randy Dunlap

Give the user a clue about the problem along with the 35 lines of usage/help text.

---
v2: spell out "command" & send to STDERR; (Yamada-san)

Applied to linux-kbuild. Thanks.

Quoted 13 lines
 scripts/config |    1 +
 1 file changed, 1 insertion(+)
scripts/config +1 -0
@@ -223,6 +223,7 @@ while [ "$1" != "" ] ; do
                ;;
 
        *)
+               echo "bad command: $CMD" >&2
                usage
                ;;
        esac
Signature · 2 lines
Best Regards
Masahiro Yamada