Commit 1d417178 authored by Daniel Xu's avatar Daniel Xu

Return cleanly after printing help

Test plan:
```
 $ ./build/src/bpftrace -h &> /dev/null && echo $?
 0
```
parent 8e8258dd
...@@ -103,6 +103,9 @@ int main(int argc, char *argv[]) ...@@ -103,6 +103,9 @@ int main(int argc, char *argv[])
case 'c': case 'c':
cmd_str = optarg; cmd_str = optarg;
break; break;
case 'h':
usage();
return 0;
default: default:
usage(); usage();
return 1; return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment