Truffle plugins that that use cli flags receive them as keys in the injected config (awesome.) However they also automatically trigger a warning e.g
$ truffle run myPlugin --myOption hello
> Warning: possible unsupported (undocumented in help) command line option: --myOption
Is there any way for plugins to hook into the option checking logic?
If not is there any appetite for a PR that temporarily squelches the warning output when the truffle command name is run? e.g at core/lib/command.js L128
// TODO: Remove exception for 'truffle run' when plugin options support added.
if (invalidOptions.length > 0 && result.name !== "run")
There are no unpreventable warnings
truffle version): 5.0.35node --version):npm --version): If not is there any appetite for a PR that temporarily squelches the warning output [...]
I'd be into this as a stopgap solution, but I'd rather a PR that hooks into option parsing!
Good issue @cgewecke, thanks for raising it!
Most helpful comment
I'd be into this as a stopgap solution, but I'd rather a PR that hooks into option parsing!
Good issue @cgewecke, thanks for raising it!