[wildfly-dev] Default boolean parameters to true

Brian Stansberry brian.stansberry at redhat.com
Thu Aug 21 09:45:24 EDT 2014


Sounds reasonable to me.

On 8/21/14, 7:26 AM, Darran Lofthouse wrote:
> I would expect it would need to be a CLI change.
>
> On 21/08/14 12:00, Tomaž Cerar wrote:
>> What do you have in mind, CLI enhancement to handle this.
>> or global handling of operation handlers on the server?
>>
>>
>> On Thu, Aug 21, 2014 at 12:14 PM, Darran Lofthouse
>> <darran.lofthouse at jboss.com <mailto:darran.lofthouse at jboss.com>> wrote:
>>
>>      Not talking about changing any other defaults but I have been thinking
>>      would it make sense where boolean parameters are being passed in an
>>      operation that we assume they are true if no value is specified.
>>
>>      As an example I regularly execute the following two commands: -
>>
>>          :read-resource(recursive=true)
>>          :whoami(verbose=true)
>>
>>      In both cases the value feels redundant and it would be more natural to
>>      just use: -
>>
>>          :read-resource(recursive)
>>          :whoami(verbose)
>>
>>      Regards,
>>      Darran Lofthouse.
>>
>>      _______________________________________________
>>      wildfly-dev mailing list
>>      wildfly-dev at lists.jboss.org <mailto:wildfly-dev at lists.jboss.org>
>>      https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>
>>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>


-- 
Brian Stansberry
Senior Principal Software Engineer
JBoss by Red Hat


More information about the wildfly-dev mailing list