summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2009-08-08 18:36:35 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2009-08-08 18:36:35 +0000
commit00db32ca773baa3d55f332a03fa4f33814b98d7b (patch)
treedc419c18b1b56a48118ab677ea0d9042cda1b9f8
parent45cf1594f717b07d27721e90d7afa7b7a1171424 (diff)
better synopsis;
-rw-r--r--usr.sbin/pppd/chat/chat.89
-rw-r--r--usr.sbin/pppd/chat/chat.c8
2 files changed, 10 insertions, 7 deletions
diff --git a/usr.sbin/pppd/chat/chat.8 b/usr.sbin/pppd/chat/chat.8
index e0c8a4d6d5f..6240f3b2d7a 100644
--- a/usr.sbin/pppd/chat/chat.8
+++ b/usr.sbin/pppd/chat/chat.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chat.8,v 1.16 2009/08/08 14:09:34 sobrado Exp $
+.\" $OpenBSD: chat.8,v 1.17 2009/08/08 18:36:34 jmc Exp $
.\" Id: chat.8,v 1.7 1998/02/04 01:35:49 paulus Exp $
.\" -*- nroff -*-
.\" manual page [] for chat 1.8
@@ -12,11 +12,12 @@
.Nm chat
.Op Fl eSsVv
.Bk -words
+.Op Fl f Ar chat_file
.Op Fl r Ar report_file
.Op Fl T Ar phone_number
.Op Fl t Ar timeout
.Op Fl U Ar phone_number_2
-.Fl f Ar chat_file | script
+.Ar script
.Ek
.Sh DESCRIPTION
The
@@ -39,7 +40,9 @@ When echoing is enabled, all output from the modem is echoed to
.It Fl f Ar chat_file
Read the chat script from the
.Ar chat_file .
-The use of this option is mutually exclusive with the chat script parameters.
+The use of this option is mutually exclusive with the chat
+.Ar script
+parameter.
The user must have read access to the file.
Multiple lines are permitted in the file.
Space or horizontal tab characters should be used to separate the strings.
diff --git a/usr.sbin/pppd/chat/chat.c b/usr.sbin/pppd/chat/chat.c
index f938c953b56..bcb7fad4a9f 100644
--- a/usr.sbin/pppd/chat/chat.c
+++ b/usr.sbin/pppd/chat/chat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chat.c,v 1.25 2009/08/08 14:09:34 sobrado Exp $ */
+/* $OpenBSD: chat.c,v 1.26 2009/08/08 18:36:34 jmc Exp $ */
/*
* Chat -- a program for automatic session establishment (i.e. dial
@@ -83,7 +83,7 @@
#if 0
static char rcsid[] = "Id: chat.c,v 1.19 1998/03/24 23:57:48 paulus Exp $";
#else
-static char rcsid[] = "$OpenBSD: chat.c,v 1.25 2009/08/08 14:09:34 sobrado Exp $";
+static char rcsid[] = "$OpenBSD: chat.c,v 1.26 2009/08/08 18:36:34 jmc Exp $";
#endif
#endif
@@ -423,8 +423,8 @@ char *chat_file;
void usage()
{
fprintf(stderr, "\
-usage: %s [-eSsVv] [-r report_file] [-T phone_number] [-t timeout]\n\
- [-U phone_number_2] -f chat_file | script\n",
+usage: %s [-eSsVv] [-f chat_file] [-r report_file] [-T phone_number]\n\
+ [-t timeout] [-U phone_number_2] script\n",
__progname);
exit(1);
}