i am currently writing an ember-cli addon that modifies some files before the actual build (using the addon hooks preprocessTree). The behavior of the plugin is controlled via command line arguments:
ember build --myflag VALUE
This is working as intended, but on each build I am getting a warning like:
The option '--myflag' is not registered with the build command. Run `ember build --help` for a list of supported options.
- Is there a possibility to make that warning go away?
- Can I go even further and provide the information of what the flag does to ember build --help ?
I dont want to overwrite the complete build (and serve) command by extending the ServeCommand and BuildCommand classes coming with ember-cli - only to shut of that warning, because this would certainly be an overkill to my requirements as I dont change the fundamental behavior of these commands and only use an hook that is provided by the Addon class.