[ 
https://issues.apache.org/jira/browse/CONFIGURATION-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Bourg updated CONFIGURATION-211:
-----------------------------------------

    Attachment: CommandLineConfiguration.java

This is another implementation derived from my previous class :
- the remaining arguments are added to the configuration under the 
CommandLineConfiguration.PARAMETERS_KEY
- properties can be specified as -key=value and --key=value
- the value is optional, -key is considered as a boolean flag
- a no arg constructor is present, allowing a change of the list delimiter 
before parsing the arguments



> CommandLineConfiguration
> ------------------------
>
>                 Key: CONFIGURATION-211
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-211
>             Project: Commons Configuration
>          Issue Type: Improvement
>    Affects Versions: Nightly Builds
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: CLI-CommandLineConfiguration.java, 
> CommandLineConfiguration.java, CommandLineConfiguration.java, 
> TestCommandLineConfiguration.java
>
>
> I implemented a simple configuration taking the properties from the command
> line. I don't know if it is worth adding in the main code base, but I'm
> submitting it here if ever someone find it useful. Comments are welcome :)

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to