Commit 3d8222a8 authored by Ludovic Rousseau's avatar Ludovic Rousseau

Default mode is verbose. Use -q for quiet

parent 4fb13a07
......@@ -83,8 +83,11 @@ prints the list of readers and then exits.
stress mode. Sends APDU commands to the card indefinitely (until the
card or the reader is removed).
.TP
.B \-q
quiet: prints minimal messages.
.TP
.B \-v
verbose: prints additionnal messages.
verbose: prints additionnal messages (default).
.SH SEE ALSO
.BR pcscd "(8), " ATR_analysis (1)
.SH AUTHOR
......
......@@ -101,6 +101,7 @@ static void usage(const char *pname)
printf("\t\t -n : no ATR analysis\n");
printf("\t\t -r : only lists readers\n");
printf("\t\t -s : stress mode\n");
printf("\t\t -q : quiet mode\n");
printf("\n");
}
......@@ -241,14 +242,14 @@ static void initialize_options(options_t *options, const char *pname)
#endif
options->stress_card = False;
options->print_version = False;
options->verbose = False;
options->verbose = True;
options->only_list_readers = False;
}
#ifdef WIN32
#define OPTIONS "Vhvrs"
#define OPTIONS "Vhvrsq"
#else
#define OPTIONS "Vhnvrs"
#define OPTIONS "Vhnvrsq"
#endif
static int parse_options(int argc, char *argv[], options_t *options)
......@@ -280,6 +281,10 @@ static int parse_options(int argc, char *argv[], options_t *options)
options->stress_card = True;
break;
case 'q':
options->verbose = False;
break;
case 'h':
usage(pname);
exit(EX_OK);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment