diff options
-rw-r--r-- | uxd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -280,10 +280,10 @@ long parse_number(int opt, const char *s) { void parse_args(int argc, char **argv) { int opt; - if(argc > 1) { - if(strcmp(argv[1], "--help") == 0) + for(opt = 1; opt < argc; opt++) { + if(strcmp(argv[opt], "--help") == 0) usage(); - if(strcmp(argv[1], "--version") == 0) + if(strcmp(argv[opt], "--version") == 0) version(); } |