Skip to content

Commit

Permalink
Improve command line option processing
Browse files Browse the repository at this point in the history
  • Loading branch information
rasa committed Feb 22, 2015
1 parent fb75e52 commit b450052
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 1.7 (20-Feb-2015)

* Workaround buggy getopt implementation
* Improve command line option processing
* Updated to Visual Studio 2013
* Switch to MIT license

Expand Down
4 changes: 4 additions & 0 deletions res_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,10 @@ printf("%s\n", __LINE__);
exit(0);
break;

case ':':
fprintf(stderr, "Option -%c requires an operand\n", optopt);
// fallthrough

default:
usage();
exit(1);
Expand Down

0 comments on commit b450052

Please sign in to comment.