On 01/30/09 13:31, Brock Pytlik wrote:
> Michael Schuster wrote:
>> On 01/30/09 13:05, Brock Pytlik wrote:
>>> Michael Schuster wrote:
>>
>>>> 1) I see you mixing short and long options. Is that necessary?
>>> There are a limited number of letters, and a lot of pkg subcommands. 
>>> To attempt to reduce conflicts, I used long options for rare options. 
>>> Mostly, I closed my eyes and picked the first letter/string which 
>>> came to mind, I didn't put much thought into the option format at this.
>>>>
>>>> 2) if you need an option to limit the number of results, I see -n as 
>>>> the more obvious than -z.
>>> -n has meanings in other contexts. I don't care what letter is 
>>> chosen, I chose -z for size
>>
>> do you mean "pkg search -n" is already taken, or that "pkg -n ..." is 
>> taken?
> I mean pkg install -n, pkg uninstall -n, etc already have defined 
> meanings, and fairly important ones. I'm hesitant to create competing 
> associations in the users mind for that particular option.

hmm ... makes sense.

>>
>>>> 3) the syntax for "find everything in /usr/bin" seems rather 
>>>> complex. From a previous discussion on this subject, shouldn't "pkg 
>>>> search /usr/bin" be able to "do the right thing" (since /usr/bin 
>>>> traditionally contains only files ... ;-)
>>> Well, pkg search /usr/bin/* "does the right thing".
>>
>> are you considering shell globbing effects here, or just using 
>> unquoted notation for simplicity of this exchange?
> Using the unquoted notation for simplicity. 

Ok, just wanted to understand.


> Unless I hear a large outcry, I don't think I'll be offering the -o 
> expression to mean "or". Especially not considering that -o may be an 
> option (a la pkg contents) to allow fine grained control over the output 
> categories. I think googlisms are a more reasonable style to take hints 
> from, especially given our goal of targeting a broader class of users. 
> Like I said, if there's a large outcry, I'll reconsider.

I'm not arguing, just pointing out :-)

Michael
-- 
Michael Schuster        http://blogs.sun.com/recursion
Recursion, n.: see 'Recursion'
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to