History

scripts/decode_stacktrace.sh: clarify command line

The syntax as expressed by usage() is not entirely correct: "<modules path>" cannot be passed without "<base path>|auto". Additionally human reading of this syntax can be subject to misunderstanding due the mixture of '|' and '[]'. Improve readability in various ways: * rewrite using two lines for the two allowed usages * add square brackets around "<vmlinux>" as it is optional when using debuginfod-find * move "<modules path>" to inside the square brackets of the 2nd positional parameter * use underscores instead of spaces in <...> strings

Luca Ceresoli committed 2 years ago

Commit a6d05e81 parent 0f69dc21 file · +2 −1Browse files

Showing the changes to scripts/decode_stacktrace.sh (1 of 1 file). Show all

Unified · Split

scripts/decode_stacktrace.sh+2−1
@@ -5,7 +5,8 @@ · 4 unmodified lines
55
66 usage() {
77 echo "Usage:"
8− echo " $0 -r <release> | <vmlinux> [<base path>|auto] [<modules path>]"
8+ echo " $0 -r <release>"
9+ echo " $0 [<vmlinux> [<base_path>|auto [<modules_path>]]]"
910 }
1011
1112 # Try to find a Rust demangler