Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
bpftrace
Commits
1d417178
Commit
1d417178
authored
6 years ago
by
Daniel Xu
Browse files
Options
Download
Email Patches
Plain Diff
Return cleanly after printing help
Test plan: ``` $ ./build/src/bpftrace -h &> /dev/null && echo $? 0 ```
parent
8e8258dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/main.cpp
src/main.cpp
+3
-0
No files found.
src/main.cpp
View file @
1d417178
...
...
@@ -103,6 +103,9 @@ int main(int argc, char *argv[])
case
'c'
:
cmd_str
=
optarg
;
break
;
case
'h'
:
usage
();
return
0
;
default:
usage
();
return
1
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment