aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pw.c b/pw.c
index c8b3944..9b7f860 100644
--- a/pw.c
+++ b/pw.c
@@ -299,7 +299,8 @@ static char *getln(FILE *stream)
static void usage(void)
{
fprintf(stderr,
- "\nUsage: <command> | %s [options]\n\n"
+ "\nThis is pw version %s.\n\n"
+ "Usage: <command> | %s [options]\n\n"
"-i realnum poll interval (s)\n"
"-l realnum long update interval (s)\n"
"-n integer display size (# of lines)\n"
@@ -317,7 +318,7 @@ static void usage(void)
"Standard input must be redirected; it cannot be the same device\n"
"as the controlling tty (/dev/tty) of the terminal session.\n\n"
"For a full description, see the manual page.\n\n",
- pw_name, pw_name);
+ CONFIG_PW_VER, pw_name, pw_name);
exit(EXIT_FAILURE);
}