Adding the documentation for the new --noread option.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4755 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-04-08 19:40:37 +00:00
parent db7064b8e6
commit e1f46a988a
3 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2014-04-08 Benno Schulenberg <bensberg@justemail.net>
* doc: Add the documentation for the new --noread option.
2014-04-08 Hans Alves <fonsvandeachterburen@gmail.com>
* nano.h, files.c, nano.c: Adding the command-line option --noread
to treat any name on the command line as a new file. This allows

View File

@ -19,7 +19,7 @@
.\" <http://www.gnu.org/licenses/>.
.\"
.\" $Id$
.TH NANO 1 "version 2.3.3" "March 2014"
.TH NANO 1 "version 2.3.3" "April 2014"
.\" Please adjust this date whenever revising the manpage.
.\"
@ -171,6 +171,13 @@ clicks can be used to place the cursor, set the mark (with a double
click), and execute shortcuts. The mouse will work in the X Window
System, and on the console when gpm is running.
.TP
.B \-n (\-\-noread)
Treat any name given on the command line as a new file. This allows
\fBnano\fR to write to named pipes: it will start with a blank buffer,
and will write to the pipe when the user saves the "file". This way
\fBnano\fR can be used as an editor in combination with for instance
\fBgpg\fR without having to write sensitive data to disk first.
.TP
.B \-o \fIdir\fP (\-\-operatingdir=\fIdir\fP)
Set operating directory. Makes \fBnano\fP set up something similar to a
chroot.

View File

@ -8,8 +8,8 @@
@c Run 'makeinfo' rather than 'texinfo-format-buffer'.
@smallbook
@set EDITION 0.1
@set VERSION 2.2.0
@set UPDATED 30 Nov 2009
@set VERSION 2.3.3
@set UPDATED April 2014
@dircategory Editors
@direntry
@ -241,6 +241,13 @@ clicks can be used to place the cursor, set the mark (with a double
click), and execute shortcuts. The mouse will work in the X Window
System, and on the console when gpm is running.
@item -n, --noread
Treat any name given on the command line as a new file. This allows
@code{nano} to write to named pipes: it will start with a blank buffer,
and will write to the pipe when the user saves the "file". This way
@code{nano} can be used as an editor in combination with for instance
@code{gpg} without having to write sensitive data to disk first.
@item -o <dir>, --operatingdir=<dir>
Set operating directory. Makes @code{nano} set up something similar to
a chroot.