iankelling.org
/
git
/
evhz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed verbose to nonverbose
[evhz]
/
evhz.c
diff --git
a/evhz.c
b/evhz.c
index be5ff6db9c957676accd8c029cee9823a1d6b0b3..1588024ba06b69b4daf35de3805f33592da56139 100644
(file)
--- 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 optch;
int i;
event_t events[EVENTS];
- int verbose =
0
;
+ int verbose =
1
;
- while((optch = getopt(argc, argv, "h
v
")) != -1) {
+ while((optch = getopt(argc, argv, "h
n
")) != -1) {
switch(optch) {
case('h'):
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;
return 0;
break;
- case('
v
'):
- verbose =
1
;
+ case('
n
'):
+ verbose =
0
;
break;
}
}
break;
}
}