From: Felix Fietkau Date: Sat, 2 Feb 2008 23:06:20 +0000 (+0100) Subject: fix file input for cli X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=865b3fb435c6896498bd6174e5ee4ea605a963fd;p=oweals%2Fuci.git fix file input for cli --- diff --git a/cli.c b/cli.c index 1a478bb..fdcc08d 100644 --- a/cli.c +++ b/cli.c @@ -301,7 +301,7 @@ int main(int argc, char **argv) return 1; } - while((c = getopt(argc, argv, "mfsS")) != -1) { + while((c = getopt(argc, argv, "mf:sS")) != -1) { switch(c) { case 'f': input = fopen(optarg, "r");