1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ruby.c: show feature names

* ruby.c (feature_option): show possible feature names when
  unknown argument is given.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-02-07 02:40:52 +00:00
parent ee696372a8
commit 3890bb60a9

1
ruby.c
View file

@ -765,6 +765,7 @@ feature_option(const char *str, int len, void *arg, const unsigned int enable)
}
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