summaryrefslogtreecommitdiff
path: root/usr.bin/mg/mg.1
diff options
context:
space:
mode:
authorMark Lumsden <lum@cvs.openbsd.org>2015-12-24 09:07:48 +0000
committerMark Lumsden <lum@cvs.openbsd.org>2015-12-24 09:07:48 +0000
commita220ffdde145ce289774d250fd6a07a0258fef4e (patch)
tree86019d283e349d6d80a5113f581c857845b1d864 /usr.bin/mg/mg.1
parent7261629189a05ed1510a7821f7c723f93bba2dbd (diff)
Add -R option to allow files specified on the command line to be
opened read-only. ok jasper@ phessler@ and man page advice from jmc@
Diffstat (limited to 'usr.bin/mg/mg.1')
-rw-r--r--usr.bin/mg/mg.18
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/mg/mg.1 b/usr.bin/mg/mg.1
index ae315d1e2fe..e3130d9d858 100644
--- a/usr.bin/mg/mg.1
+++ b/usr.bin/mg/mg.1
@@ -1,7 +1,7 @@
-.\" $OpenBSD: mg.1,v 1.97 2015/12/22 15:33:16 lum Exp $
+.\" $OpenBSD: mg.1,v 1.98 2015/12/24 09:07:47 lum Exp $
.\" This file is in the public domain.
.\"
-.Dd $Mdocdate: December 22 2015 $
+.Dd $Mdocdate: December 24 2015 $
.Dt MG 1
.Os
.Sh NAME
@@ -9,7 +9,7 @@
.Nd emacs-like text editor
.Sh SYNOPSIS
.Nm mg
-.Op Fl n
+.Op Fl nR
.Op Fl f Ar mode
.Op + Ns Ar number
.Op Ar
@@ -40,6 +40,8 @@ arguments on the command line, including the
scratch buffer and all files.
.It Fl n
Turn off backup file generation.
+.It Fl R
+Files specified on the command line will be opened read-only.
.El
.Sh WINDOWS AND BUFFERS
When a file is loaded into