X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=cli.c;h=3d25b7c42c21dc3eeda83987ff1bc56a39ad0250;hb=01ca9e5e467e4f324f52fd80a2ec4db999b3db48;hp=5e0697da2ed2f0f808092941fb9207ecc50ad22f;hpb=854f7c5d08cd37aeb7414e26ed6666fad26f5f7a;p=project%2Fuci.git diff --git a/cli.c b/cli.c index 5e0697d..3d25b7c 100644 --- a/cli.c +++ b/cli.c @@ -12,40 +12,182 @@ */ #include #include +#include #include "uci.h" +static const char *appname = "uci"; + static struct uci_context *ctx; +enum { + CMD_GET, + CMD_SET, + CMD_DEL +}; static void uci_usage(int argc, char **argv) { fprintf(stderr, - "Usage: %s [options] [arguments]\n\n" + "Usage: %s [] []\n\n" "Commands:\n" - "\tshow [[.
[.