diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-27 11:24:33 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-04 21:16:34 -0400 |
commit | 106b308ed4c99b1f2397ebd106974e07f934a9f8 (patch) | |
tree | 7e587e32bb203f14c81ca3a96a397b12c43910be | |
parent | 24b16ed35e402e6389ca00753343ac93c0949a02 (diff) | |
download | rneovim-106b308ed4c99b1f2397ebd106974e07f934a9f8.tar.gz rneovim-106b308ed4c99b1f2397ebd106974e07f934a9f8.tar.bz2 rneovim-106b308ed4c99b1f2397ebd106974e07f934a9f8.zip |
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.
-rw-r--r-- | runtime/doc/starting.txt | 3 | ||||
-rw-r--r-- | src/nvim/main.c | 1 |
2 files changed, 3 insertions, 1 deletions
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); |