commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CLI-53) [cli] Parsing error?
Date Mon, 10 Jul 2006 06:35:30 GMT
     [ http://issues.apache.org/jira/browse/CLI-53?page=all ]

Henri Yandell updated CLI-53:
-----------------------------

    Bugzilla Id:   (was: 36998)
    Fix Version: 2.1

I think we should look into this post getting a 2.0 released.

> [cli] Parsing error?
> --------------------
>
>          Key: CLI-53
>          URL: http://issues.apache.org/jira/browse/CLI-53
>      Project: Commons CLI
>         Type: Bug

>     Versions: 1.0
>  Environment: Operating System: Linux
> Platform: PC
>     Reporter: C Rose
>      Fix For: 2.1

>
> Hi
> If one accidentally confuses the long and short argument name styles, then the value
of the argument is 
> incorrect. This is mad clear by an example:
> If I have a program that I call as follows:
> my_prog --file my_file.txt
> or
> my_prog -f my_file.txt
> but I make a typo and write
> my_prog -file my_file.txt
> then getOptionValue('f') will return "ile" (i.e. it thinks the remainder of the argument's
name is the 
> argument). "my_file.txt" will be ignored.
> This is clearly an error that the user has made, but I think that CLI should be able
to detect such an 
> error and throw an appropriate exception.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message