summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIgor Sobrado <sobrado@cvs.openbsd.org>2008-05-29 19:58:16 +0000
committerIgor Sobrado <sobrado@cvs.openbsd.org>2008-05-29 19:58:16 +0000
commit56b4f15fe0f5069d3cbb45f9ea73752f8d75b42a (patch)
tree66a990b7687f91aab213d7cbc308220fb8ccce17 /usr.bin
parent9599fd01bdcad69824d74fbf2c97ddf3e126680e (diff)
add a detailed synopsis to mg(1); synchronize with usage.
tweaks by jmc@ ok jmc@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/main.c4
-rw-r--r--usr.bin/mg/mg.114
2 files changed, 10 insertions, 8 deletions
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c
index 30fcb7202c5..2238a39757a 100644
--- a/usr.bin/mg/main.c
+++ b/usr.bin/mg/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.56 2007/02/20 04:39:45 cloder Exp $ */
+/* $OpenBSD: main.c,v 1.57 2008/05/29 19:58:15 sobrado Exp $ */
/* This file is in the public domain. */
@@ -34,7 +34,7 @@ extern char *__progname;
static __dead void
usage()
{
- fprintf(stderr, "usage: %s [+line] [-n] [-f mode] [file ...]\n",
+ fprintf(stderr, "usage: %s [-n] [-f mode] [+number] [file ...]\n",
__progname);
exit(1);
}
diff --git a/usr.bin/mg/mg.1 b/usr.bin/mg/mg.1
index eb081625261..16f6445f488 100644
--- a/usr.bin/mg/mg.1
+++ b/usr.bin/mg/mg.1
@@ -1,7 +1,7 @@
-.\" $OpenBSD: mg.1,v 1.35 2008/01/10 21:56:24 jmc Exp $
+.\" $OpenBSD: mg.1,v 1.36 2008/05/29 19:58:15 sobrado Exp $
.\" This file is in the public domain.
.\"
-.Dd $Mdocdate: January 10 2008 $
+.Dd $Mdocdate: May 29 2008 $
.Dt MG 1
.Os
.Sh NAME
@@ -9,8 +9,10 @@
.Nd emacs-like text editor
.Sh SYNOPSIS
.Nm mg
-.Op Ar options
-.Op Ar file ...
+.Op Fl n
+.Op Fl f Ar mode
+.Op + Ns Ar number
+.Op Ar
.Sh DESCRIPTION
.Nm
is intended to be a small, fast, and portable editor for
@@ -24,7 +26,7 @@ be any reason to learn more editor types than emacs or
.Pp
The options are as follows:
.Bl -tag -width Ds
-.It Ar +number
+.It + Ns Ar number
Go to the line specified by number (do not insert
a space between the
.Sq +
@@ -32,7 +34,7 @@ sign and the number).
If a negative number is specified, the line number counts
backwards from the end of the file i.e. +-1 will be the last
line of the file, +-2 will be second last, and so on.
-.It Fl f Ar <mode>
+.It Fl f Ar mode
Run the mode command for all buffers created from
arguments on the command line, including the
scratch buffer and all files.