aboutsummaryrefslogtreecommitdiff
path: root/src/option.cc
blob: 552d83f11508a4ca15c8cdb58da6f079ff2e7d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

#include "option.h"

#include <string>
#include <iostream>

#include "global.h"
#include "util/io.h"

using namespace std;

namespace ov4::option
{
    
void v(string s)
{
    if (s == "" || s == "true" || s == "1")
    {
        ov4::verbose = true;
        LOG << "verbose = true" << endl;
        return;
    }
    if (s == "false" || s == "0")
    {
        ov4::verbose = false;
        LOG << "verbose = flase" << endl;
        return;
    }
    LOG << "-v: invalid value" << endl;
}
    
}