Skip to content

Commit

Permalink
Fix command line parsing of -c
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeata committed Nov 10, 2018
1 parent 83d622d commit ecf1e5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bsort.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ main(int argc, char *argv[]) {
break;
case 'c':
cut_off = atoi(optarg);
break;
default:
fprintf(stderr, "Invalid parameter: -%c\n", opt);
goto failure;
Expand Down Expand Up @@ -305,7 +306,7 @@ main(int argc, char *argv[]) {
exit(0);
failure:
fprintf(stderr,
"Usage: %s [-v] [-a] [-r ###] [-k ###] [-s ###] file1, file2 ... \n",
"Usage: %s [-v] [-a] [-r ###] [-k ###] [-s ###] [-c ###] file1, file2 ... \n",
argv[0]);
fprintf(stderr,
"Individually sort binary files inplace with a radix sort\n"
Expand Down

0 comments on commit ecf1e5b

Please sign in to comment.