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 1a478bb..fdcc08d 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -301,7 +301,7 @@ int main(int argc, char **argv)
                return 1;
        }
 
                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");
                switch(c) {
                        case 'f':
                                input = fopen(optarg, "r");