~vcs-imports/nano/master

« back to all changes in this revision

Viewing changes to doc/nano.texi

  • Committer: Benno Schulenberg
  • Author(s): Mateusz Kazimierczuk
  • Date: 2023-07-31 05:40:07 UTC
  • Revision ID: git-v1:e65b0ba6542b03a76fa6fecabdea56c04c2792b5
options: add -? as a synonym of -h (--help)

The short option '-?' was removed nine years ago in commit 43019189,
then restored six years later in 5bd92d4c, and then removed again two
months later in 743100fe due to getopt() returning '?' for options
that aren't recognized, preventing the use of '-?' as a valid option.

However, getopt() provides a way to check for unrecognized options
via the 'optopt' variable, which gets set only for invalid options.

Signed-off-by: Mateusz Kazimierczuk <mataha+savannah@protonmail.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>

Show diffs side-by-side

added added

removed removed

Lines of Context:
574
574
and people with poor vision.
575
575
 
576
576
@item -h
 
577
@itemx -?
577
578
@itemx --help
578
579
Show a summary of command-line options and exit.
579
580