aboutsummaryrefslogtreecommitdiff
path: root/watch.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2009-01-30 05:07:13 +0000
committerDimitri Sokolyuk <demon@dim13.org>2009-01-30 05:07:13 +0000
commitd22356b8ce842a81655a144f446a66ab599bc689 (patch)
tree5b36c7e10a850427f0e7d5eb03e3cc74646362f2 /watch.c
parent77fe9479f549afe431d8b32c39b6831f3407d4df (diff)
*** empty log message ***
Diffstat (limited to 'watch.c')
-rw-r--r--watch.c10
1 files changed, 5 insertions, 5 deletions
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);
}