summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-07 02:40:52 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-07 02:40:52 (GMT)
commit3890bb60a92918af998456359a0db642250fa13e (patch)
tree5dba56d8b18c940f038d10b3aa8bd683a1a0c05a /ruby.c
parentee696372a8840135c06e5605cf90593ff672b522 (diff)
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 dfbf714..9637ea4 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