From: <jh...@us...> - 2010-10-05 00:23:35
|
Revision: 217 http://etch.svn.sourceforge.net/etch/?rev=217&view=rev Author: jheiss Date: 2010-10-05 00:23:29 +0000 (Tue, 05 Oct 2010) Log Message: ----------- Comment on the non-standard options to OptionParser since they are decidely non-obvious. Modified Paths: -------------- trunk/client/etch Modified: trunk/client/etch =================================================================== --- trunk/client/etch 2010-10-05 00:22:27 UTC (rev 216) +++ trunk/client/etch 2010-10-05 00:23:29 UTC (rev 217) @@ -16,6 +16,9 @@ options = {} @generateall = nil +# Extra options to OptionParser reduce the amount of whitespace it introduces +# into the help message, making it easier to make the help message fit in a +# 80x24 window. opts = OptionParser.new(nil, 24, ' ') opts.banner = 'Usage: etch [options] [/path/to/config/file | command] [otherfile ...]' opts.on('--generate-all', 'Request all configuration.') do |opt| This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |