X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=93517bf392b26a54b25f3f814eefa15ed7140278;hp=d83e257e4e2d3ec1e4d362acf60e81c4de15546d;hb=09a2be57d769a9b0f80e5aff75ec8bc6acae8e9a;hpb=99981540182c29049e971a3cb9a772d7f107b2ab diff --git a/cli.c b/cli.c index d83e257..93517bf 100644 --- a/cli.c +++ b/cli.c @@ -12,24 +12,97 @@ */ #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 [[.
[.