diff --git a/src/tty.c b/src/tty.c index c66012e..6e5b653 100644 --- a/src/tty.c +++ b/src/tty.c @@ -57,7 +57,15 @@ static int _usage(void) /* main */ int main(int argc, char * argv[]) { - if(argc != 1) + int o; + + while((o = getopt(argc, argv, "")) != -1) + switch(o) + { + default: + return _usage(); + } + if(optind != argc) return _usage(); return _tty(); }