nobu.nokada / softhome.net wrote:
> Hi,
> 
> At Sat, 25 Jun 2005 14:15:43 +0900,
> Joel VanderWerf wrote in [ruby-talk:146437]:
> 
>>OptionParser.new do |prsr|
>>   prsr.on("-a",
>>           "please use the",
>>           "-b option instead")
>>#          ^
>># insert a space above the caret to prevent
>># detection of -b as an option.
>>#
> 
> 
> OptionParser treats a string starts with "-" as an option name.
> 


Is that the right behavior though? Maybe after the first non-option 
string (in this case "please use the"), the parser should assume that 
the rest of the strings are also not options.

It's really easy to run into this situation if you reference another 
option in the descriptive text, and then re-wrap the text.