Skip to contentSkip to conversation

kconfig: config script: add a little user help

PATCH Superseded Randy Dunlap 2 participants 3 messages Dec 19, 2020 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#1 lore raw
Quoted 15 lines · Randy Dunlap

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

---
 scripts/config |    1 +
 1 file changed, 1 insertion(+)

scripts/config while [ "$1" != "" ] ; do · line 226

Quoted 4 lines
scripts/config +1 -0
@@ -223,6 +223,7 @@ while [ "$1" != "" ] ; do
                ;;
 
        *)
+               echo "bad cmd: $CMD"

Please send this to stderr.

Quoted 3 lines
scripts/config +0 -0
                usage
                ;;
        esac
Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw
Quoted 19 lines · Masahiro Yamada
Quoted 17 lines · Randy Dunlap

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

---
 scripts/config |    1 +
 1 file changed, 1 insertion(+)
scripts/config +0 -0
@@ -223,6 +223,7 @@ while [ "$1" != "" ] ; do
                ;;
 
Quoted 4 lines

scripts/config while [ "$1" != "" ] ; do · line 226

Quoted 2 lines
scripts/config +1 -0
        *)
+               echo "bad cmd: $CMD"

Please send this to stderr.

Also, "bad command" instead of "bad cmd"

Quoted 12 lines

scripts/config while [ "$1" != "" ] ; do · line 229

Quoted 6 lines
scripts/config +0 -0
                usage
                ;;
        esac

--
Best Regards
Masahiro Yamada

Signature · 2 lines
Best Regards
Masahiro Yamada