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:
parent
ee696372a8
commit
3890bb60a9
1 changed files with 1 additions and 0 deletions
1
ruby.c
1
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'",
|
rb_warn("unknown argument for --%s: `%.*s'",
|
||||||
enable ? "enable" : "disable", len, str);
|
enable ? "enable" : "disable", len, str);
|
||||||
|
rb_warn("features are [gems, did-you-mean, rubyopt, frozen-string-literal].");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue