--- libaitcli/example/test.c 2011/03/16 17:24:03 1.3 +++ libaitcli/example/test.c 2013/10/08 08:30:33 1.3.14.1 @@ -55,13 +55,14 @@ cliCommands_t commands[] = { // --------------------------------------- -int main() +int +main(int argc, char **argv) { int ret; linebuffer_t *t; // ret = cliExec(commands, "test>"); - t = cliInit(0, 1, "test>"); + t = cliInit(0, 1, argv[1]); ret = cliLoop(t, NULL); cliEnd(t);