Add -h option to display help message: ``` $ ./syzkaller-start -h Usage: syzkaller-start [<URL or ID> <report occurence>] [--again] [--gdb] [-h]
--again Use the current kernel commit and run qemu directly. --gdb debug with gdb -h Display this help message and exit. ```
Signed-off-by: Tudor Ambarus tudor.ambarus@linaro.org --- syzkaller-start | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/syzkaller-start b/syzkaller-start index 8bcc23a..abd4ec7 100644 --- a/syzkaller-start +++ b/syzkaller-start @@ -10,12 +10,14 @@ occurence=1
function usage() { - echo "Usage: $(basename $0) [<URL or ID> <report occurence>] [--again] [--gdb]" + echo "Usage: $(basename $0) [<URL or ID> <report occurence>] [--again] [--gdb] [-h]" echo echo -e "\t--again" echo -e "\t\tUse the current kernel commit and run qemu directly." echo -e "\t--gdb" echo -e "\t\tdebug with gdb" + echo -e "\t-h" + echo -e "\t\tDisplay this help message and exit." exit 1 }
@@ -45,6 +47,7 @@ while [ $# -gt 0 ]; do --norepro|-n) NOREPRO=true ;; + -h) usage $0; exit 0 ;; *) # Is the arg an occurrence number or a report URL? if [ $(echo ${1} | wc -c) -gt 40 ]; then