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 a23a7bc commit e619bbf
Show file tree
Hide file tree
Showing 2 changed files with 4 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.4 (20-Feb-2015)

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

Expand Down
3 changes: 3 additions & 0 deletions path_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ int main(int argc, char **argv)
case '?':
usage();
exit(0);
case ':':
fprintf(stderr, "Option -%c requires an operand\n", optopt);
// fallthrough
default:
usage();
exit(1);
Expand Down

0 comments on commit e619bbf

Please sign in to comment.