[PATCH 1/2] strace-log-merge: support '-h' help flag

Brandon Maier brandon.maier at collins.com
Fri May 24 13:00:07 UTC 2024


This is a common flag for command help. Print usage instead of the "No
output found".

Signed-off-by: Brandon Maier <brandon.maier at collins.com>
---
 src/strace-log-merge | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/strace-log-merge b/src/strace-log-merge
index 01ecda4f2..ee06531f1 100755
--- a/src/strace-log-merge
+++ b/src/strace-log-merge
@@ -26,7 +26,7 @@ ds='\([0-9][0-9]*\)'
 if [ $# -ne 1 ]; then
 	show_usage >&2
 	exit 1
-elif [ "$1" = '--help' ]; then
+elif [ "$1" = '-h' ] || [ "$1" = '--help' ]; then
 	show_usage
 	exit 0
 fi
-- 
2.45.1



More information about the Strace-devel mailing list