Danek Duvall wrote:
> On Sun, Oct 12, 2008 at 08:29:28PM -0500, Shawn Walker wrote:
> 
>>> How's this:
>>>
>>>     pkg.depotd --content-root --mirror
>>>
>>> Does that set the value of content-root to "--mirror", or does it set the
>>> value of content-root to be the built-in default?
>> The latter thanks to long options parsing (I wish it would force --blah=foo 
>> as the syntax).
>>
>> With the long-options parsing, it apparently sees --mirror *as* the value 
>> to --content-root.
> 
> I'm confused.  Did those two sentences directly contradict each other?

Not to me.

I'm just pointing out that with the way the long options parsing works, 
--mirror will be seen as the value of --content-root.

However:
./depot.py --content-root= --mirror

Will cause getopt to return the content root arg with a value of "".


> Sure.  Presumably you could do the same thing with
> 
>     ./depot.py ... --content-root ""

Right.

It's annoying to me though...

-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to