Skip to content

Commit

Permalink
halt if given an unknown command-line option
Browse files Browse the repository at this point in the history
  • Loading branch information
willbryant committed Jun 24, 2011
1 parent d14f214 commit 02fa05d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/niet.c
Expand Up @@ -248,6 +248,9 @@ int main(int argc, char* argv[]){
case 'c':
dir = optarg;
break;

case '?':
return help();
}
}
if (optind >= argc) return help();
Expand Down

0 comments on commit 02fa05d

Please sign in to comment.