Skip to content

Commit

Permalink
usage added
Browse files Browse the repository at this point in the history
  • Loading branch information
vvviperrr committed Aug 2, 2016
1 parent 61b83f2 commit 64f10b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion simple-rt-cli/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ int main(int argc, char *argv[])
if (argc > 1) {
const char *param = argv[1];

if (strcmp(param, "-d") == 0) {
if (strcmp(param, "-h") == 0) {
puts("usage: sudo simple-rt [-h -d]");
return EXIT_SUCCESS;
} else if (strcmp(param, "-d") == 0) {
puts("debug mode enabled");
libusb_set_debug(NULL, LIBUSB_LOG_LEVEL_DEBUG);
} else {
Expand Down

0 comments on commit 64f10b1

Please sign in to comment.