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 5a58081 commit 62ccd29
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.7 (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 lsdsk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,9 @@ int process_options(int argc, char **argv) {
exit(0);
break;

case ':':
fprintf(stderr, "Option -%c requires an operand\n", optopt);
// fallthrough
default:
usage();
exit(1);
Expand Down

0 comments on commit 62ccd29

Please sign in to comment.