[ 
https://issues.apache.org/jira/browse/PIVOT-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16448793#comment-16448793
 ] 

Roger Whitcomb commented on PIVOT-1033:
---------------------------------------

Implemented this:

Sending wtk\src\org\apache\pivot\wtk\BrowserApplicationContext.java
Sending wtk\src\org\apache\pivot\wtk\DesktopApplicationContext.java
Transmitting file data ..done
Committing transaction...
Committed revision 1829940.

Need to think about tests now...

> Allow startup properties of the form "--switch" in addition to 
> "--option=value"
> -------------------------------------------------------------------------------
>
>                 Key: PIVOT-1033
>                 URL: https://issues.apache.org/jira/browse/PIVOT-1033
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>            Reporter: Roger Whitcomb
>            Assignee: Roger Whitcomb
>            Priority: Minor
>
> Sometimes applications need options that are either specified or not (a 
> common one is "–verbose" for instance), where there is no need for a value, 
> but simply the presence (or absence) of the flag.  Our current option 
> processing in BrowserApplicationContext and DesktopApplicationContext will 
> not allow that – it always requires "–option=value".  This could be changed.  
> Then the Map could have a Boolean.TRUE as the value (which could be ignored, 
> of course), but the semantics would be the same as if the option were given 
> as ("–option=true"), but with less typing required ("--option").



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to