aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--watch.18
-rw-r--r--watch.c10
2 files changed, 9 insertions, 9 deletions
diff --git a/watch.1 b/watch.1
index 5f0b98b..8494887 100644
--- a/watch.1
+++ b/watch.1
@@ -27,10 +27,10 @@ will prompt for it.
.Pp
The options are as follows:
.Bl -tag -width Ds
-.It Fl s Ar time
+.It Fl n Ar time
Set delay between screen updates in seconds.
-The default delay is 2 seconds.
-.It Fl n
+The default value is 2 seconds.
+.It Fl t
Disable output of the title bar.
.It Fl v
Display version and terminate.
@@ -42,7 +42,7 @@ will terminate with the keyboard interrupt
.Pp
.Sh EXAMPLE
.Nm
--s 1 ps
+-n 1 ps
.Pp
.Sh HISTORY
The original
diff --git a/watch.c b/watch.c
index d2d7b45..98d2743 100644
--- a/watch.c
+++ b/watch.c
@@ -20,7 +20,7 @@ static const char rcsid[] =
"$Id$";
#endif /* not lint */
-static const char version[] = "1.0";
+static const char version[] = "1.1";
#include <sys/ioctl.h>
#include <sys/time.h>
@@ -101,15 +101,15 @@ main(int argc, char **argv)
int delay = DELAY;
int ch;
- while ((ch = getopt(argc, argv, "+s:nv")) != -1)
+ while ((ch = getopt(argc, argv, "+n:tv")) != -1)
switch (ch) {
- case 's':
+ case 'n':
delay = atoi(optarg);
if (delay < 1)
usage();
/* NOTREACHED */
break;
- case 'n':
+ case 't':
flags &= ~F_TITLE;
break;
case 'v':
@@ -299,6 +299,6 @@ __dead void
usage(void)
{
(void)fprintf(stderr,
- "usage: %s [-nv] [-s time] [command]\n", __progname);
+ "usage: %s [-tv] [-n time] [command]\n", __progname);
exit(1);
}