aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-07 02:40:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-07 02:40:52 +0000
commit529acc7fb77bde587b02c5083dd0dfd90e3abaaf (patch)
tree5dba56d8b18c940f038d10b3aa8bd683a1a0c05a /ruby.c
parentcb2367988cddb798d4152e8d42b4e59be8318343 (diff)
downloadruby-529acc7fb77bde587b02c5083dd0dfd90e3abaaf.tar.gz
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
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index dfbf714f37..9637ea41c6 100644
--- a/ruby.c
+++ b/ruby.c
@@ -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