X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=3a19b36c9a7bdc193e1b56b702a5a1dacfcae9cd;hp=5e0697da2ed2f0f808092941fb9207ecc50ad22f;hb=6115a71b4c998bc0cc359766f99653dadc8ca431;hpb=854f7c5d08cd37aeb7414e26ed6666fad26f5f7a diff --git a/cli.c b/cli.c index 5e0697d..3a19b36 100644 --- a/cli.c +++ b/cli.c @@ -15,47 +15,94 @@ #include "uci.h" static struct uci_context *ctx; +static char *buf = NULL; +static int buflen = 256; static void uci_usage(int argc, char **argv) { fprintf(stderr, - "Usage: %s [options] [arguments]\n\n" + "Usage: %s [] []\n\n" "Commands:\n" "\tshow [[.
[.