Add plugins help#263
Conversation
Allow loaded plugins Call plugins help
neo-cli/Shell/MainService.cs
Outdated
| "Advanced Commands:\n" + | ||
| "\tstart consensus\n"); | ||
|
|
||
| Plugin.SendMessage(new string[] { "plugin-help" }); |
There was a problem hiding this comment.
I used a different word for plugins help that for node help because if we use the same it will trigger here https://github.com/neo-project/neo-cli/blob/62fef6c81f537d71a2232ec47c2b13ddd04385aa/neo-cli/Shell/MainService.cs#L52-L54
It's a cosmetic decision as the plugins help will appear over the node help.
Another option is to add GetHelp to the Plugin class and implement on plugins.
What do you think is better? If we are fine with the help order (plugins then node) I can change to just help.
There was a problem hiding this comment.
Maybe it can be like this:
help [plugin-name]
The plugin only processes its own help messages. If the plugin-name parameter is omitted, then no plugin will process this message. The help information for the node is printed by default.
(Needs neo-project/neo#466)