Skip to content

Commit

Permalink
The -d option was never supported, remove it (but continue accepting …
Browse files Browse the repository at this point in the history
…flag for compatibility)
  • Loading branch information
cannam committed Jun 19, 2013
1 parent 46619d7 commit 57e3319
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions vsthost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,15 +453,14 @@ closeJack()
void
usage()
{
fprintf(stderr, "Usage: vsthost [-n] [-d<x>] <dll>\n -n No GUI\n -d Debug level (0, 1, 2 or 3)\n");
fprintf(stderr, "Usage: vsthost [-n] <dll>\n -n No GUI\n");
exit(2);
}

int
main(int argc, char **argv)
{
char *dllname = 0;
int debugLevel = 0;
bool gui = true;

int npfd;
Expand All @@ -474,11 +473,7 @@ main(int argc, char **argv)
else if (c == 'n') {
gui = false;
} else if (c == 'd') {
int dl = atoi(optarg);
if (dl >= 0 && dl < 4) debugLevel = dl;
else {
usage();
}
fprintf(stderr, "NOTE: Ignoring unsupported -d option for backward compatibility\n");
} else {
usage();
}
Expand Down

0 comments on commit 57e3319

Please sign in to comment.