#include "nmrpd.h"
#include "ethsock.h"
+int verbosity = 0;
+
void usage(FILE *fp)
{
fprintf(fp,
" -t <timeout> Timeout (in milliseconds) for regular messages\n"
" -T <timeout> Time to wait after successfull TFTP upload\n"
" -p <port> Port to use for TFTP upload\n"
+ " -v Be verbose\n"
" -V Print version and exit\n"
" -L List network interfaces\n"
" -h Show this screen\n"
opterr = 0;
- while ((c = getopt(argc, argv, "a:f:i:m:M:p:t:T:hLV")) != -1) {
+ while ((c = getopt(argc, argv, "a:f:i:m:M:p:t:T:hLVv")) != -1) {
max = 0x7fffffff;
switch (c) {
case 'a':
case 'V':
printf("nmrp-flash v%s\n", NMRPD_VERSION);
return 0;
+ case 'v':
+ ++verbosity;
+ break;
case 'L':
return ethsock_list_all();
case 'h':