admin@glassfish.java.net

Re: hidden command options

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Fri, 27 Aug 2010 08:36:35 -0500

+1. The syntax would be --_force, right?
Tom

On 8/27/2010 7:38 AM, Tim Quinn wrote:
> Seems like a good idea to support hidden options.
>
> I would vote for using the underscore. As you said, it's consistent
> with the hidden command syntax and, to me, it seems slightly less
> likely that a user would accidentally enter _--force than accidentally
> enter ---force. Not that it's a big deal either way.
>
> - Tim
>
> On Aug 27, 2010, at 1:49 AM, Bill Shannon wrote:
>
>> Just like we have hidden commands (name starts with "_"),
>> Bhakti has asked for hidden options to commands. It's easy
>> to change the code that generates the usage message to ignore
>> options that start with "_".
>>
>> Harder would be to add @Param(hidden=true).
>>
>> Does anyone object to doing the same for options as we do for commands?
>>
>> So, if you wanted a hidden "force" option, you would declare it
>> @Param(name="_force") and specify it on the command line as "--_force".
>>
>> Of course, we could use any other special character we want. I just
>> chose "_" for consistency with hiddden commands. We could, for
>> instance,
>> use "-", giving us a CLI option of "---force", which looks a bit nicer
>> but may be too subtle and easily confused.
>>
>> Comments?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>