Add verbose mode flag
This commit is contained in:
parent
871befaf01
commit
642effa07b
1 changed files with 5 additions and 1 deletions
4
main.c
4
main.c
|
@ -83,6 +83,7 @@ main(int argc, char *argv[])
|
||||||
char * keyfile = NULL;
|
char * keyfile = NULL;
|
||||||
uint8_t* passwd = NULL;
|
uint8_t* passwd = NULL;
|
||||||
int numbers_only = 0;
|
int numbers_only = 0;
|
||||||
|
int verbose = 0;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
#ifdef NEED_WARN_PROGNAME
|
#ifdef NEED_WARN_PROGNAME
|
||||||
|
@ -116,6 +117,9 @@ main(int argc, char *argv[])
|
||||||
case 't':
|
case 't':
|
||||||
unit_tests();
|
unit_tests();
|
||||||
break;
|
break;
|
||||||
|
case 'v':
|
||||||
|
verbose = 1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue