X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=46da45af1a52f9f0119687d3b86d9efd9abb1057;hp=dadadaa9226eb8d9867fcfdfaf5ed804273a4d61;hb=600ce9acc5efadd699243f889462b982b83052f2;hpb=14654223268133b5e74ee1748cec2374664ac5bf diff --git a/cli.c b/cli.c index dadadaa..46da45a 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 .
.