This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It is not really a bug but an improvement request You can define custom startup args for your netbeans app that you will handle by registering your own CLIHandler with the help of @ServiceProvider. But... The startup module which contains the class declares friends and of course your module is not on the list. So you must cheat to make your module friend of the startup module Why is CLIHandler not publicly available for other modules?