aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-16 07:23:21 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-16 07:23:21 -0700
commit4d57d98d263a1c685c38fdb9b0af82078612ffd9 (patch)
tree2d6515a300737b86b8dfae4859203ca25cb088cb /pw.c
parentaa02dc7bf5715d1dfd230c326b9d9788ba1e6261 (diff)
downloadpw-4d57d98d263a1c685c38fdb9b0af82078612ffd9.tar.gz
pw-4d57d98d263a1c685c38fdb9b0af82078612ffd9.tar.bz2
pw-4d57d98d263a1c685c38fdb9b0af82078612ffd9.zip
Version 1 is released.pw-1
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);
}