1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Stefan Kost provided an help command for the shell Daniel

* debugXML.c: Stefan Kost provided an help command for the shell
Daniel
This commit is contained in:
Daniel Veillard
2001-11-08 13:53:05 +00:00
parent a6825e8df8
commit 5004f42ff4
2 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Nov 8 14:52:18 CET 2001 Daniel Veillard <daniel@veillard.com>
* debugXML.c: Stefan Kost provided an help command for the shell
Wed Nov 7 14:32:55 CET 2001 Daniel Veillard <daniel@veillard.com> Wed Nov 7 14:32:55 CET 2001 Daniel Veillard <daniel@veillard.com>
* debugXML.c: Heiko Rupp pointed that the shell would crash * debugXML.c: Heiko Rupp pointed that the shell would crash

View File

@ -1987,7 +1987,24 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
break; break;
if (!strcmp(command, "bye")) if (!strcmp(command, "bye"))
break; break;
if (!strcmp(command, "validate")) { if (!strcmp(command, "help")) {
printf("\tbase display XML base of the node\n");
printf("\tbye leave shell\n");
printf("\tcat [node] display node or current node\n");
printf("\tcd [path] change directory to path or to root\n");
printf("\tdir [path] dumps informations about the node (namespace, attributes, content)\n");
printf("\tdu [path] show the structure of the subtree under path or the current node\n");
printf("\texit leave shell\n");
printf("\thelp display this help\n");
printf("\tfree display memory usage\n");
printf("\tload [name] load a new document with name\n");
printf("\tls [path] list contents of path or the current directory\n");
printf("\tpwd display current working directory\n");
printf("\tquit leave shell\n");
printf("\tsave [name] save this document to name or the original name\n");
printf("\tvalidate check the document for errors\n");
printf("\twrite [name] write the current node to the filename\n");
} else if (!strcmp(command, "validate")) {
xmlShellValidate(ctxt, arg, NULL, NULL); xmlShellValidate(ctxt, arg, NULL, NULL);
} else if (!strcmp(command, "load")) { } else if (!strcmp(command, "load")) {
xmlShellLoad(ctxt, arg, NULL, NULL); xmlShellLoad(ctxt, arg, NULL, NULL);