diff options
Diffstat (limited to 'cethcan/main.c')
-rw-r--r-- | cethcan/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cethcan/main.c b/cethcan/main.c index 961c543..2b9154e 100644 --- a/cethcan/main.c +++ b/cethcan/main.c @@ -2,6 +2,8 @@ struct event_base *ev_base; +int verbosity = 0; + int main(int argc, char **argv) { int optch = 0; @@ -11,11 +13,14 @@ int main(int argc, char **argv) struct sigaction sa; do { - optch = getopt(argc, argv, "c:"); + optch = getopt(argc, argv, "vc:"); switch (optch) { case 'c': cfgfile = optarg; break; + case 'v': + verbosity++; + break; case -1: break; } |