Add "auto" to the usage message so that it's a little clearer that you can pass "auto" as the second argument. When passing "auto" the script tries to find the base path automatically instead of requiring it be passed on the commandline. Also use [<variable>] to indicate the variable argument and that it is optional so that we can differentiate from the literal "auto" that should be passed.
Showing the changes to scripts/decode_stacktrace.sh (1 of 1 file). Show all
Unified · Split
| @@ -5,7 +5,7 @@ · 4 unmodified lines | |||
| 5 | 5 | ||
| 6 | usage() { | 6 | usage() { |
| 7 | echo "Usage:" | 7 | echo "Usage:" |
| 8 | echo " $0 -r <release> | <vmlinux> [base path] [modules path]" | 8 | echo " $0 -r <release> | <vmlinux> [<base path>|auto] [<modules path>]" |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | if [[ $1 == "-r" ]] ; then | 11 | if [[ $1 == "-r" ]] ; then |