On Sun, Jul 27, 2008 at 5:51 AM, lahiru gunathilake <[EMAIL PROTECTED]> wrote:

>>> The other option would be to specify it to list. Maybe something like:
>>>
>>> queue list -v <vhost> -n <name>
>>
>> I will implement like this.
>>
> I think we want to get a single object with info command so this apply for
> info command not with list command.

I think virtual host is still relevant for list. They're conceptually
separate, so often (but not always) you're only interested in one
vhost but not the others.

> Why don't we use a standard way to give arguments, with list we give
> arguments with minuse("-") sign so why don't we use the same with info
> command, I think we have to use -n to specify the object name with info
> whereas we use the same thing with list which leads to less confusion with
> users. And from the beginning I started developing commands in the normal
> way with minus sign and argument value.
>
> What do you think ?

I think it's worth allowing both forms, it gives the user more
flexibility and lets things "just work". To quote Postel's Law: "be
conservative in what you do, be liberal in what you accept from
others."

I'll be on GTalk shortly if you want to chat about this in real time.

- Aidan
-- 
Apache Qpid - World Domination through Advanced Message Queueing
http://cwiki.apache.org/qpid

Reply via email to