small medium large xlarge

Generic-user-small
11 Feb 2012, 01:16
Taro Fukunaga (8 posts)

I really liked your brief section on OptionParser and wrote an example. Anyone can see it here:

http://code.google.com/p/taro-tools/source/browse/trunk/sysinfo.rb

Taro

Dmfcb_pragsmall
17 Feb 2012, 13:43
David Copeland (489 posts)

Cool. One suggestion is that you might not want to us @-h@ for hostname, since @-h@ typically is for getting command-line help (@OptionParser@ does this automatically for you if you don’t override @-h@).

Generic-user-small
17 Feb 2012, 14:15
Taro Fukunaga (8 posts)

Thanks David. Yeah, -h is kind of a weird option. Well, it’s just a sample app so I let it go.

You must be logged in to comment