From a590645cde905c325b39ef0dbdf748871fad5567 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 26 May 2024 16:41:41 +0200 Subject: [PATCH] docs: document the new --listsyntaxes (-z) option --- doc/nano.1 | 3 +++ doc/nano.texi | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/doc/nano.1 b/doc/nano.1 index cc2eab80..5e0b66be 100644 --- a/doc/nano.1 +++ b/doc/nano.1 @@ -347,6 +347,9 @@ Don't show the two help lines at the bottom of the screen. .BR \-y ", " \-\-afterends Make Ctrl+Right and Ctrl+Delete stop at word ends instead of beginnings. .TP +.BR \-z ", " \-\-listsyntaxes +List the names of the available syntaxes and exit. +.TP .BR \-! ", " \-\-magic When neither the file's name nor its first line give a clue, try using libmagic to determine the applicable syntax. diff --git a/doc/nano.texi b/doc/nano.texi index dbdc2ff8..25ecb0ac 100644 --- a/doc/nano.texi +++ b/doc/nano.texi @@ -712,6 +712,10 @@ disabled to display the help-system navigation keys. Make @kbd{Ctrl+Right} and @kbd{Ctrl+Delete} stop at word ends instead of beginnings. +@item -z +@itemx --listsyntaxes +List the names of the available syntaxes and exit. + @item -! @itemx --magic When neither the file's name nor its first line give a clue,