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
Unified · Split
| @@ -5,7 +5,8 @@ · 4 unmodified lines | ||
| 5 | 5 | |
| 6 | 6 | usage() { |
| 7 | 7 | 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>]]]" | |
| 9 | 10 | } |
| 10 | 11 | |
| 11 | 12 | # Try to find a Rust demangler |