[libvirt] virsh help keywords vs. command prefixes

Eric Blake eblake at redhat.com
Mon Jan 3 21:53:32 UTC 2011


On 01/03/2011 02:46 PM, Stefan Berger wrote:
> libvir-list-bounces at redhat.com wrote on 01/03/2011 03:10:20 PM:
> 
>> From: Paul Jenner <psj at familyjenner.co.uk>
>> To: libvir-list at redhat.com
>> Date: 01/03/2011 03:17 PM
>> Subject: [libvirt] virsh help keywords vs. command prefixes
>> Sent by: libvir-list-bounces at 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 at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110103/08ef47c7/attachment-0001.sig>


More information about the libvir-list mailing list