X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=305d9fed4b3a83a3118c573b47da51f6bf144313;hp=95bc34ebb2ac717c76def5c60ff44f0e0dca467e;hb=43124956bc9c1083e476f6cadaedf27b7788d004;hpb=5620bfaa14ce556b94de26128bc7fe9edc5a3f27 diff --git a/cli.c b/cli.c index 95bc34e..305d9fe 100644 --- a/cli.c +++ b/cli.c @@ -19,6 +19,7 @@ #define MAX_ARGS 4 /* max command line arguments for batch mode */ +static const char *delimiter = " "; static const char *appname; static enum { CLI_FLAG_MERGE = (1 << 0), @@ -34,6 +35,7 @@ enum { /* section cmds */ CMD_GET, CMD_SET, + CMD_ADD_LIST, CMD_DEL, CMD_RENAME, CMD_REVERT, @@ -43,6 +45,7 @@ enum { CMD_EXPORT, CMD_COMMIT, /* other cmds */ + CMD_ADD, CMD_IMPORT, CMD_HELP, }; @@ -58,13 +61,19 @@ static void uci_usage(void) "\texport []\n" "\timport []\n" "\tchanges []\n" + "\tcommit []\n" + "\tadd \n" + "\tadd_list .
.