Skip to content
Browse files

[api] Parse argv for silent option.

  • Loading branch information...
1 parent 1f76efb commit fd69656c64bfde8dc6fd736d8e00b6c67434ac5f @AvianFlu committed May 15, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 options.c
View
4 options.c
@@ -12,6 +12,7 @@ options_t options_parse(int argc, char *argv[]) {
opts.errfile = NULL;
opts.target = NULL;
opts.json = 0;
+ opts.silent = 0;
opts.child_args = NULL;
int i;
@@ -32,6 +33,9 @@ options_t options_parse(int argc, char *argv[]) {
case 'j':
opts.json = 1;
break;
+ case 's':
+ opts.silent = 1;
+ break;
case '-':
if (argv[i + 1] != NULL) {
opts.target = &argv[i + 1][0];

0 comments on commit fd69656

Please sign in to comment.
Something went wrong with that request. Please try again.