Browse Source

make -e cli option actually work

master
Brett Langdon 13 years ago
parent
commit
2276ee3c1c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main.c

+ 2
- 1
src/main.c View File

@ -102,7 +102,7 @@ int main(int argc, char* argv[]){
int c;
int option_index = 0;
while((c = getopt_long(argc, argv, "hp:u:w:c:", long_options, &option_index)) != -1){
while((c = getopt_long(argc, argv, "hp:u:w:c:e:", long_options, &option_index)) != -1){
if(c == 0){
switch(option_index){
case 0:
@ -170,6 +170,7 @@ int main(int argc, char* argv[]){
queue_init(&requests);
printf("Using Expire Time of %d sec\r\n", record_expire_time);
printf("Opening Cache File: \"%s\"\r\n", cache_file);
db = kcdbnew();
if(!kcdbopen(db, cache_file, KCOWRITER | KCOCREATE)){


Loading…
Cancel
Save