typechecking, add set_confdir and set_savedir
[project/uci.git] / cli.c
diff --git a/cli.c b/cli.c
index be479c4..229352f 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -59,6 +59,7 @@ static void uci_usage(void)
                "\texport     [<config>]\n"
                "\timport     [<config>]\n"
                "\tchanges    [<config>]\n"
+               "\tcommit     [<config>]\n"
                "\tadd        <config> <section-type>\n"
                "\tshow       [<config>[.<section>[.<option>]]]\n"
                "\tget        <config>.<section>[.<option>]\n"
@@ -403,7 +404,6 @@ static int uci_batch(void)
                        fprintf(stderr, "Unknown command\n");
 
                /* clean up */
-               uci_cleanup(ctx);
                uci_foreach_element_safe(&ctx->root, tmp, e) {
                        uci_unload(ctx, uci_to_package(e));
                }