[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] virsh help keywords vs. command prefixes



On 01/03/2011 02:46 PM, Stefan Berger wrote:
> libvir-list-bounces redhat com wrote on 01/03/2011 03:10:20 PM:
> 
>> From: Paul Jenner <psj familyjenner co uk>
>> To: libvir-list redhat com
>> Date: 01/03/2011 03:17 PM
>> Subject: [libvirt] virsh help keywords vs. command prefixes
>> Sent by: libvir-list-bounces redhat com
>>
>> Hi all.
>>
>> >From a quick play with virsh from the 0.8.7 pre-release, as an end user
>> I wonder if it may be more intuitive for the new help keywords to match
>> the virsh command prefixes where they exist. For example "help nwfilter"
>> would tell me about nwfilter- commands. Some keywords follow the prefix
>> convention (nodedev, secret, snapshot, pool) but some do not (interface
>> vs. iface-, filter vs nwfilter-, network vs. net-, volume vs. vol-).
>>
>> Minor observation and close to release but I thought I would send on
>> feedback to see what people thought.
> 
> We could introduce the 'help nwfilter' etc. as alias to the existing 
> one(s).

I've also got the (post-0.8.7) idea of teaching virsh how to do
unambiguous prefix recognition; and it wouldn't be too hard to tweak it
to recognize that if a prefix is ambiguous but all commands that share
that prefix belong to a single category, then treat it as 'help
category' instead.

-- 
Eric Blake   eblake redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]