X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=3d25b7c42c21dc3eeda83987ff1bc56a39ad0250;hp=322d170d3a613e70c18483eb89ed0fb7fcf86378;hb=0d93aa6955690384f76da04a17831aa3a2d116cf;hpb=508525c69e08a96031ed24f2d09e3bc2d1d33fca diff --git a/cli.c b/cli.c index 322d170..3d25b7c 100644 --- a/cli.c +++ b/cli.c @@ -12,16 +12,31 @@ */ #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 [[.
[.