File: offer_help_option_for_stacks_gdb.patch

package info (click to toggle)
stacks 2.68%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,092 kB
  • sloc: cpp: 41,356; sh: 3,497; python: 1,410; perl: 1,388; makefile: 148
file content (15 lines) | stat: -rw-r--r-- 315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Offer help option
Author: Lance Lin <lq27267@gmail.com>
Date: 2023-09-06

--- a/scripts/stacks-gdb
+++ b/scripts/stacks-gdb
@@ -27,7 +27,7 @@
 crash.
 "
 
-if [[ $# -eq 0 ]] ;then
+if [[ $# -eq 0 ]] || [[ "$1" =~ ^(-h|--help|--version)$ ]] ;then
     echo -n "$usage"
     echo
     echo -n "$gdb_req"