fix file input for cli
authorFelix Fietkau <nbd@openwrt.org>
Sat, 2 Feb 2008 23:06:20 +0000 (00:06 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 2 Feb 2008 23:06:20 +0000 (00:06 +0100)
cli.c

diff --git a/cli.c b/cli.c
index 1a478bb05eae953de0f4284f6bc78f586b23ef3e..fdcc08de9dd402c044b7eecf8c7e2d0448c6ae49 100644 (file)
--- 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");