william's blog | 2012-02-04 12:20:20 +0000 =========================================== Trollop 1.13 released --------------------- Date: March 16, 2009 5:54pm Author: William Morgan Labels: trollop, releases URL: http://masanjin.net/blog/trollop-1.13.txt I've released Trollop 1.13. This is a minor bugfix release. Arguments given with ='s and with spaces in the values are now parsed correctly. (E.g. @--name="your mom"@.) Get it with a quick @gem install trollop@. Replies -------- Trisha Leavitt, on March 16, 2009 8:29pm: ["| Hi William, I am actually writing about an image that I found on Flickr. I'm a\n", "| designer working on a season brochure for the American Repertory Theater in\n", "| Cambridge. One of next year's productions is called Red Sox Nation, and the\n", "| artistic director saw your image and loves it. Would you consider letting us\n", "| use it in the brochure and on the website? And if so, do you have a hi-\n", "| resolution version? We would be willing to offer a small stipend (they're\n", "| non-profit, so money is tight).\n", "| \n", "| Please let me know. Thanks, Trish Leavitt\n", "| \n"] Michael Edgar, on March 28, 2009 11:22pm: ["| \n", "| Hey William - I just got started using Trollop today, and I love it. I did\n", "| come across a very strange use-case though that caused some problems. I'm\n", "| writing a program that has subcommands, and allows the user to create new\n", "| Commands with a rakefile-style file, which was creating objects with an ivar\n", "| @options. When I used _that_ object's @options in a Trollop::options block,\n", "| all hell broke loose. I'm assuming you use @options in the Parser object?\n", "| Anyway, I fixed it up really easily, but I thought I'd pass it along.\n", "| \n"] William Morgan, on March 30, 2009 3:31am: [" | \n", " | Yeah, everything in the @options@ block is evaluated in the context of the\n", " | Parser object. The benefit is that you could just call @opt@ within that block\n", " | without having to say @parser.opt@ each time. The downside is the behavior you\n", " | describe. Luckily I think what you're doing is quite rare, and easy enough to\n", " | get around.\n", " | \n"] This delicious text version served up by Whisper .