]> granicus.if.org Git - vim/commitdiff
patch 8.0.1792: MS-Windows users expect -? to work like --help v8.0.1792
authorBram Moolenaar <Bram@vim.org>
Sat, 5 May 2018 13:09:51 +0000 (15:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 5 May 2018 13:09:51 +0000 (15:09 +0200)
Problem:    MS-Windows users expect -? to work like --help.
Solution:   Add -?. (Christian Brabandt, closes #2867)

src/main.c
src/version.c

index 3b366b507d56b8ddf212af7d0e7348ef3b88c2de..e2686b8496d80cb27771e1cdb9beae11a53ba600 100644 (file)
@@ -2014,6 +2014,7 @@ command_line_scan(mparm_T *parmp)
 #endif
                break;
 
+           case '?':           /* "-?" give help message (for MS-Windows) */
            case 'h':           /* "-h" give help message */
 #ifdef FEAT_GUI_GNOME
                /* Tell usage() to exit for "gvim". */
index 9dd2895edff521563c6e4f720fc3380246471b3a..b0c8ed7c7e2dd159b05cd1c92f5d6fa8b7157e6e 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1792,
 /**/
     1791,
 /**/