From: Richard Jones Date: Sat, 4 Apr 2009 15:52:52 +0000 (+0100) Subject: Fix incorrect short description of 'cat' command X-Git-Tag: 0.4~9 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=e5e9541f2de4af37bca98633aa75f9f9533a07db;p=libguestfs.git Fix incorrect short description of 'cat' command --- diff --git a/fish/cmds.c b/fish/cmds.c index 3b53587..6ab8e16 100644 --- a/fish/cmds.c +++ b/fish/cmds.c @@ -29,7 +29,7 @@ void list_commands (void) { printf (" %-16s %s\n", "Command", "Description"); list_builtin_commands (); - printf ("%-20s %s\n", "cat", "list the files in a directory (long format)"); + printf ("%-20s %s\n", "cat", "list the contents of a file"); printf ("%-20s %s\n", "ll", "list the files in a directory (long format)"); printf ("%-20s %s\n", "ls", "list the files in a directory"); printf ("%-20s %s\n", "mount", "mount a guest disk at a position in the filesystem"); @@ -41,7 +41,7 @@ void list_commands (void) void display_command (const char *cmd) { if (strcasecmp (cmd, "cat") == 0) - pod2text ("cat - list the files in a directory (long format)", " cat \n\nReturn the contents of the file named C.\n\nBecause of the message protocol, there is a transfer limit \nof somewhere between 2MB and 4MB. To transfer large files you should use\nFTP."); + pod2text ("cat - list the contents of a file", " cat \n\nReturn the contents of the file named C.\n\nBecause of the message protocol, there is a transfer limit \nof somewhere between 2MB and 4MB. To transfer large files you should use\nFTP."); else if (strcasecmp (cmd, "ll") == 0) pod2text ("ll - list the files in a directory (long format)", " ll \n\nList the files in C (relative to the root directory,\nthere is no cwd) in the format of 'ls -la'.\n\nThis command is mostly useful for interactive sessions. It\nis I intended that you try to parse the output string."); diff --git a/src/generator.ml b/src/generator.ml index 14b5155..44cc06b 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -49,7 +49,7 @@ type flags = ProtocolLimitWarning let functions = [ ("cat", (RString "content", P1 (String "path")), 4, [ProtocolLimitWarning], - "list the files in a directory (long format)", + "list the contents of a file", "\ Return the contents of the file named C.");