From: Ian Kelling Date: Thu, 10 Oct 2013 20:11:28 +0000 (-0700) Subject: Changed verbose to nonverbose X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=5f76843477f74318bdafd3bf226466d5116d92cd;p=evhz Changed verbose to nonverbose --- diff --git a/evhz.c b/evhz.c index be5ff6d..1588024 100644 --- a/evhz.c +++ b/evhz.c @@ -28,16 +28,18 @@ int main(int argc, char *argv[]) { int optch; int i; event_t events[EVENTS]; - int verbose = 0; + int verbose = 1; - while((optch = getopt(argc, argv, "hv")) != -1) { + while((optch = getopt(argc, argv, "hn")) != -1) { switch(optch) { case('h'): - printf("Usage: %s [-v|-h]\n", argv[0]); + printf("Usage: %s [-n|-h]\n", argv[0]); + printf("-n nonverbose\n"); + printf("-h help\n"); return 0; break; - case('v'): - verbose = 1; + case('n'): + verbose = 0; break; } }