The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Generation Help

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Britt

Posts: 1319
Nickname: jamesbritt
Registered: Apr, 2003

James Britt is a principal in 30 Second Rule, and runs ruby-doc.org and rubyxml.com
Generation Help Posted: Mar 24, 2008 3:07 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by James Britt.
Original Post: Generation Help
Feed Title: James Britt: Ruby Development
Feed URL: http://feeds.feedburner.com/JamesBritt-Home
Feed Description: James Britt: Playing with better toys
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by James Britt
Latest Posts From James Britt: Ruby Development

Advertisement

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.

Read: Generation Help

Topic: The Sapphire Programming Language: defining the grammar Previous Topic   Next Topic Topic: Ruby The Smalltalk Way #3 - The World According To Objects

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use