summaryrefslogtreecommitdiff
path: root/inotail.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2006-11-08 15:52:07 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-11-08 15:52:07 +0100
commita3f1b217c76165d4e743a01cc22692774093868d (patch)
tree4eed39d1d9d82b1e2a63f9f098985667ef64d238 /inotail.c
parent730d47348eb9383aefc99acff13c0d906aed2df6 (diff)
Document -n/-c +N feature
That should make inotail POSIX tail compatible
Diffstat (limited to 'inotail.c')
-rw-r--r--inotail.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/inotail.c b/inotail.c
index e07f118..fefde0d 100644
--- a/inotail.c
+++ b/inotail.c
@@ -64,13 +64,16 @@ static const struct option long_opts[] = {
static void usage(const int status)
{
- fprintf(stderr, "Usage: %s [OPTION]... [FILE]...\n\n", PROGRAM_NAME);
- fprintf(stderr, " -c N, --bytes=N output the last N bytes\n");
- fprintf(stderr, " -f, --follow output as the file grows\n");
- fprintf(stderr, " -n N, --lines=N output the last N lines (default: %d)\n", DEFAULT_N_LINES);
- fprintf(stderr, " -v, --verbose print headers with file names\n");
- fprintf(stderr, " -h, --help show this help and exit\n");
- fprintf(stderr, " -V, --version show version and exit\n");
+ fprintf(stderr, "Usage: %s [OPTION]... [FILE]...\n\n"
+ " -c N, --bytes=N output the last N bytes\n"
+ " -f, --follow output as the file grows\n"
+ " -n N, --lines=N output the last N lines (default: %d)\n"
+ " -v, --verbose print headers with file names\n"
+ " -h, --help show this help and exit\n"
+ " -V, --version show version and exit\n\n"
+ "If the first character of N (the number of bytes or lines) is a `+',\n"
+ "begin printing with the Nth item from the start of each file, otherwise,\n"
+ "print the last N items in the file.\n", PROGRAM_NAME, DEFAULT_N_LINES);
exit(status);
}