diff mbox series

[v2] kconfig: config script: add a little user help

Message ID 20201219170805.7151-1-rdunlap@infradead.org (mailing list archive)
State New, archived
Headers show
Series [v2] kconfig: config script: add a little user help | expand

Commit Message

Randy Dunlap Dec. 19, 2020, 5:08 p.m. UTC
Give the user a clue about the problem along with the 35 lines of
usage/help text.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: linux-kbuild@vger.kernel.org
---
v2: spell out "command" & send to STDERR; (Yamada-san)

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

Comments

Masahiro Yamada Dec. 23, 2020, 3:05 p.m. UTC | #1
On Sun, Dec 20, 2020 at 2:08 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>
> Give the user a clue about the problem along with the 35 lines of
> usage/help text.
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Andi Kleen <ak@linux.intel.com>
> Cc: Masahiro Yamada <masahiroy@kernel.org>
> Cc: linux-kbuild@vger.kernel.org
> ---
> v2: spell out "command" & send to STDERR; (Yamada-san)

Applied to linux-kbuild. Thanks.


>  scripts/config |    1 +
>  1 file changed, 1 insertion(+)
>
> --- linux-next-20201218.orig/scripts/config
> +++ linux-next-20201218/scripts/config
> @@ -223,6 +223,7 @@ while [ "$1" != "" ] ; do
>                 ;;
>
>         *)
> +               echo "bad command: $CMD" >&2
>                 usage
>                 ;;
>         esac
Andi Kleen April 2, 2021, 2:20 p.m. UTC | #2
On Sat, Dec 19, 2020 at 09:08:05AM -0800, Randy Dunlap wrote:
> Give the user a clue about the problem along with the 35 lines of
> usage/help text.

Reviewed-by: Andi Kleen <ak@linux.intel.com>

-Andi
diff mbox series

Patch

--- linux-next-20201218.orig/scripts/config
+++ linux-next-20201218/scripts/config
@@ -223,6 +223,7 @@  while [ "$1" != "" ] ; do
 		;;
 
 	*)
+		echo "bad command: $CMD" >&2
 		usage
 		;;
 	esac