1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-22 04:35:58 -04:00

Document second parameter (seek position) of /cat command

This commit is contained in:
dequis 2018-02-16 10:09:48 -03:00
parent ad4324d242
commit 097a9f4988
2 changed files with 6 additions and 2 deletions

View File

@ -5,12 +5,16 @@
%9Parameters:%9
The file to display.
The file to display and optionally a position to seek in the file,
in bytes.
%9Description:%9
Displays the contents of the specified file into the active window.
The seek position parameter is used internally to display away logs, if
omitted the whole file is shown.
%9Examples:%9
/CAT /etc/network/interfaces

View File

@ -114,7 +114,7 @@ static void cmd_version(char *data)
}
}
/* SYNTAX: CAT <file> */
/* SYNTAX: CAT <file> [<seek position>] */
static void cmd_cat(const char *data)
{
char *fname, *fposstr;