ruby-changes:41689
From: nobu <ko1@a...>
Date: Sun, 7 Feb 2016 11:40:49 +0900 (JST)
Subject: [ruby-changes:41689] nobu:r53763 (trunk): ruby.c: show feature names
nobu 2016-02-07 11:40:52 +0900 (Sun, 07 Feb 2016) New Revision: 53763 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53763 Log: ruby.c: show feature names * ruby.c (feature_option): show possible feature names when unknown argument is given. Modified files: trunk/ruby.c Index: ruby.c =================================================================== --- ruby.c (revision 53762) +++ ruby.c (revision 53763) @@ -765,6 +765,7 @@ feature_option(const char *str, int len, https://github.com/ruby/ruby/blob/trunk/ruby.c#L765 } rb_warn("unknown argument for --%s: `%.*s'", enable ? "enable" : "disable", len, str); + rb_warn("features are [gems, did-you-mean, rubyopt, frozen-string-literal]."); } static void -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/