X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=cli.c;h=305d9fed4b3a83a3118c573b47da51f6bf144313;hb=7d69106b37851e90bd8660c91d906492f6d7d148;hp=dadadaa9226eb8d9867fcfdfaf5ed804273a4d61;hpb=14654223268133b5e74ee1748cec2374664ac5bf;p=project%2Fuci.git diff --git a/cli.c b/cli.c index dadadaa..305d9fe 100644 --- a/cli.c +++ b/cli.c @@ -12,12 +12,14 @@ * GNU General Public License for more details. */ #include +#include #include #include #include "uci.h" #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), @@ -33,6 +35,7 @@ enum { /* section cmds */ CMD_GET, CMD_SET, + CMD_ADD_LIST, CMD_DEL, CMD_RENAME, CMD_REVERT, @@ -42,6 +45,7 @@ enum { CMD_EXPORT, CMD_COMMIT, /* other cmds */ + CMD_ADD, CMD_IMPORT, CMD_HELP, }; @@ -56,13 +60,20 @@ static void uci_usage(void) "\tbatch\n" "\texport []\n" "\timport []\n" + "\tchanges []\n" + "\tcommit []\n" + "\tadd \n" + "\tadd_list .
.