From 106b308ed4c99b1f2397ebd106974e07f934a9f8 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 27 Aug 2018 11:24:33 -0400 Subject: [PATCH] vim-patch:8.0.1792: MS-Windows users expect -? to work like --help Problem: MS-Windows users expect -? to work like --help. Solution: Add -?. (Christian Brabandt, closes vim/vim#2867) https://github.com/vim/vim/commit/c3e81694fca484ebabd99f3637bd83b9ee2dd50a Include runtime/ changes from https://github.com/vim/vim/commit/85eee130f44a2201d88ca2aeff0af3b11dd75fa9 to pass 8.1.0231 tests. --- runtime/doc/starting.txt | 3 ++- src/nvim/main.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index c9ce2b9dc1..3440131642 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -76,7 +76,8 @@ The option arguments may be given in any order. Single-letter options can be combined after one dash. There can be no option arguments after the "--" argument. ---help *-h* *--help* +--help *-h* *--help* *-?* +-? -h Give usage (help) message and exit. See |info-message| about capturing the text. diff --git a/src/nvim/main.c b/src/nvim/main.c index af7c194edc..ab8b33aa12 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -892,6 +892,7 @@ static void command_line_scan(mparm_T *parmp) set_option_value("rl", 1L, NULL, 0); break; } + case '?': // "-?" give help message (for MS-Windows) case 'h': { // "-h" give help message usage(); mch_exit(0);