Generation Help

March 24th, 2008

A small plea to people writing code generator tools.

If you have a tool that creates, say, an application skeleton, like this:

$ wooblegen appname

please do not blindly process an argument of “help”.

A few times I’ve forgotten the options to one or another tool, invoked it with an argument of ‘help’, and ended up with a boatload of directories and files, none of which were very helpful.

The correct behavior would be to scold the user (such as myself) , explaining that the standard invocation would be possibly -h or --h or -help or -H, but not, you know, help. Then give a choice to generate stuff or get help.

Sorry, comments are closed for this article.