The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] scripts: Getting rid of -h option, when empty, the usage will be shown
@ 2026-06-07 23:20 Bhaskar Chowdhury
  2026-06-11 13:41 ` Matthieu Baerts
  0 siblings, 1 reply; 4+ messages in thread
From: Bhaskar Chowdhury @ 2026-06-07 23:20 UTC (permalink / raw)
  To: unixbhaskar, matttbe, akpm, luca.ceresoli, cmllamas, mhiramat,
	linux-kernel

cc:sashal@kernel.org

Make thing simple to show the help/usage info, when no argument given.

Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
---
 scripts/decode_stacktrace.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh
index 39d60d477bf3..fa084f128802 100755
--- a/scripts/decode_stacktrace.sh
+++ b/scripts/decode_stacktrace.sh
@@ -7,7 +7,6 @@ usage() {
 	echo "Usage:"
 	echo "	$0 [-R] -r <release>"
 	echo "	$0 [-R] [<vmlinux> [<base_path>|auto [<modules_path>]]]"
-	echo "	$0 -h"
 	echo "Options:"
 	echo "  -R: decode return address instead of caller address."
 }
@@ -37,7 +36,7 @@ ADDR2LINE=${UTIL_PREFIX}addr2line${UTIL_SUFFIX}
 NM=${UTIL_PREFIX}nm${UTIL_SUFFIX}
 decode_retaddr=false

-if [[ $1 == "-h" ]] ; then
+if [[ $1 == "" ]] ; then
 	usage
 	exit 0
 elif [[ $1 == "-R" ]] ; then
--
2.53.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-06-17 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-07 23:20 [PATCH] scripts: Getting rid of -h option, when empty, the usage will be shown Bhaskar Chowdhury
2026-06-11 13:41 ` Matthieu Baerts
     [not found]   ` <20260613233012.3245472-2-unixbhaskar@gmail.com>
2026-06-13 23:24     ` Bhaskar Chowdhury
2026-06-17 14:18       ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox