Treasure Hunt - [CommandStyle(Style.DoNotRepeat | Style.Hidden )] - allows view of the command

When I decorate a command class like this the right mouse click history is still updated with the command. When I read the Style.Hidden comments I get this:

*/// Also known as a "test" command. The command name does not auto-complete*
*/// when typed on the command line an is therefore not discoverable. Useful*
*/// for writing commands that users don't normally have access to.*

So the command is discoverable and the user can run it. Is there a way to disable the RMB history as well?

If the user is able to Discover it they must wonder why it is being hidden in the first place. This means that I have to document it or disable it from running from the command line writing something to RhinoApp.WriteLine. No problem there but if I can eliminate even the question, I would be better off.

Best;

Steve

Hi @slyon,

Hidden, or test, commands do not auto-complete. This is the non-discoverable part. Other than that, the act like normal commands.

– Dale

Thanks, I will cover the bases.

Best;

Steve

Hi @slyon,

My standard procedure for test commands called by modeless user interface is that the command just does nothing if or when run by the user from the command line.

– Dale