lib/config: add `-?` option as help
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 8 May 2018 02:54:00 +0000 (22:54 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 11 May 2018 14:58:35 +0000 (10:58 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/config/config.nit

index eb2bdba..463bf84 100644 (file)
@@ -186,7 +186,7 @@ class Config
        var opts = new OptionContext
 
        # Help option
-       var opt_help = new OptionBool("Show this help message", "-h", "--help")
+       var opt_help = new OptionBool("Show this help message", "-h", "-?", "--help")
 
        # Redefine this init to add your options
        init do