fucking fix -V option that didn't fucking work wtf

This commit is contained in:
Jeff Becker 2018-09-27 14:08:42 -04:00
parent 72ce48d3ea
commit 2e3601b140
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 12 additions and 11 deletions

View File

@ -181,8 +181,9 @@ main(int argc, char *argv[])
}
break;
case 'V':
rcfname = optarg;
verifyMode = true;
rcfname = optarg;
haveRequiredOptions = true;
verifyMode = true;
break;
case 'f':
rcfname = optarg;
@ -253,21 +254,13 @@ main(int argc, char *argv[])
if(!genMode && !updMode && !listMode && !importMode && !exportMode
&& !locateMode && !localMode && !readMode && !findMode && !toB32Mode
&& !toHexMode)
&& !toHexMode && !verifyMode)
{
llarp::LogError(
"I don't know what to do, no generate or update parameter\n");
return 1;
}
ctx = llarp_main_init(conffname, !TESTNET);
if(!ctx)
{
llarp::LogError("Cant set up context");
return 1;
}
signal(SIGINT, handle_signal);
llarp::RouterContact tmp;
if(verifyMode)
@ -326,6 +319,14 @@ main(int argc, char *argv[])
return 0;
}
ctx = llarp_main_init(conffname, !TESTNET);
if(!ctx)
{
llarp::LogError("Cant set up context");
return 1;
}
signal(SIGINT, handle_signal);
// is this Neuro or Jeff's?
// this is the only one...
if(listMode)