--- libaitcli/example/test.c 2013/10/08 09:30:55 1.3.14.2 +++ libaitcli/example/test.c 2013/11/22 14:47:45 1.5.4.1 @@ -77,9 +77,9 @@ main(int argc, char **argv) // ret = cliExec(commands, "test>"); t = cliInit(0, 1, argv[1]); - cli_addCommand(t, "oho", 0, oho, "oho [args]", "oho - is test level 0"); - cli_addCommand(t, "boho", 1, boho, "boho [args]", "boho - is test level 1"); - ret = cliLoop(t, NULL); + cli_addCommand(t, "oho", 1, oho, "oho [args]", "oho - is test level 0"); + cli_addCommand(t, "boho", 2, boho, "boho [args]", "boho - is test level 1"); + ret = cliLoop(t, NULL, 10); cliEnd(t); return 0;