You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current documentation on using grunt.option is misleading. It says that boolean flags and options with values are supported, but what it doesn't tell you is that you can't have both at the same time.
I've written a plugin called nopt-grunt that provides a work around, but it's far from ideal. While it allows you to define and use options as expected, they get added too late in the process to be documented by grunt --help.
That is a workaround, not a fix. For example grunt test --bar=42 --foo --baz --bat will still behave inconsistently. The primary issue is that Gruntfile authors are not given a way to properly configure options. They can always parse the options themselves, but that's frustrating when Grunt already gets you 80% of the way there.
The current documentation on using
grunt.option
is misleading. It says that boolean flags and options with values are supported, but what it doesn't tell you is that you can't have both at the same time.I've written a plugin called nopt-grunt that provides a work around, but it's far from ideal. While it allows you to define and use options as expected, they get added too late in the process to be documented by
grunt --help
.Misleading:
TODO:
The text was updated successfully, but these errors were encountered: