Skip to content

Commit

Permalink
Fix some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
burk committed Jun 2, 2014
1 parent 5daa658 commit f96cbbe
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,19 @@ int main(int argc, char *argv[])
break;
case '?':
if (optopt == 'p')
fprintf (stderr, "Option -%c requires an argument.\n", optopt);
fprintf(stderr, "Option -%c requires an argument.\n",
optopt);
if (optopt == 'b')
fprintf (stderr, "Option -%c requires an argument.\n", optopt);
fprintf(stderr, "Option -%c requires an argument.\n",
optopt);
if (optopt == 'n')
fprintf (stderr, "Option -%c requires an argument.\n", optopt);
else if (isprint (optopt))
fprintf (stderr, "Unknown option `-%c'.\n", optopt);
fprintf(stderr, "Option -%c requires an argument.\n",
optopt);
else if (isprint(optopt))
fprintf(stderr, "Unknown option `-%c'.\n", optopt);
else
fprintf (stderr, "Unknown option character `\\x%x'.\n", optopt);
fprintf(stderr, "Unknown option character `\\x%x'.\n",
optopt);
return 1;
default:
exit(1);
Expand Down

0 comments on commit f96cbbe

Please sign in to comment.