X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=7139f0bddd697ba7d109fdf1c899808de61d069f;hp=ab0f9b8890251ece59cdc41c7899fd1f2612ec38;hb=b7c461d025b6db1f9c3e0ce137863d9f912cdbfa;hpb=bc7b118f0a40709c985b54c96d826e9057c9f0dd diff --git a/cli.c b/cli.c index ab0f9b8..7139f0b 100644 --- a/cli.c +++ b/cli.c @@ -12,16 +12,27 @@ */ #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 [[.
[.