You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2010/06/19 20:11:24 UTC

[jira] Issue Comment Edited: (CLI-187) OptionBuilder working incorrectly at first Invocation of create(...)

    [ https://issues.apache.org/jira/browse/CLI-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880486#action_12880486 ] 

Emmanuel Bourg edited comment on CLI-187 at 6/19/10 2:10 PM:
-------------------------------------------------------------

Thank you for pointing this, there is indeed an inconsistency. The default argument name is already defined in HelpFormatter and this is where it really belongs.

      was (Author: ebourg):
    Thank you for pointing this, there is indeed an inconsistency. The default argument name is already defined in HelpFormatter and this is where is really belongs.
  
> OptionBuilder working incorrectly at first Invocation of create(...)
> --------------------------------------------------------------------
>
>                 Key: CLI-187
>                 URL: https://issues.apache.org/jira/browse/CLI-187
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: Options definition
>    Affects Versions: 1.3
>            Reporter: Kristoff Kiefer
>            Priority: Minor
>         Attachments: OptionBuilder.patch
>
>
> OptionBuilder is working incorrectly when invoked for the first time. Since "argName" is null the arg-text will not be initialized for the first option created. argName is set on the call to reset() though.
> So after the first Option created OptionBuilder works fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.