virsh --help {option} no longer works in shell

Bug #400404 reported by Geoff Low
This bug report is a duplicate of:  Bug #457163: virsh lacks bash completion. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Incomplete
Wishlist
Unassigned

Bug Description

Package: 0.6.1-0ubuntu5
DISTRIB_DESCRIPTION="Ubuntu 9.04"

Passing an option to the --help (shell) no longer works.
glow@kauri:~$ virsh --help start
Connecting to uri: qemu:///system
virsh: error: extra argument 'start'. See --help.

If I use the naked --help option I get the following
....
    vcpupin control domain vcpu affinity
    version show version
    vncdisplay vnc display

  (specify help <command> for details about the command)

This used to work (in Intrepid) and I had some neat command line bash completion, which is now no longer working as I can't interrogate the options.

Thanks

Revision history for this message
Chuck Short (zulcss) wrote :

What if you just do the following virsh --help?

Regards
chuck

Changed in libvirt (Ubuntu):
status: New → Incomplete
Revision history for this message
Geoff Low (grlownzl-gmail) wrote : Re: [Bug 400404] Re: virsh --help {option} no longer works in shell

That works; I had the following which used to work

function get_option_list
{
    # get the options for a choice
    local option=$1;
    # assume options are specified as [--option1 | --option2 | ...]
    OPTIONS=$(${VIRSH} --help ${option} 2> /dev/null | grep '|' | sed -e
's/.*\[\(.*\)\]/\1/g;s/|//g')
}

which would do completion on the arguments for a command. However, it's now
gone up the spout with the new release

Thanks
Geoff

2009/10/6 Chuck Short <email address hidden>

> What if you just do the following virsh --help?
>
> Regards
> chuck
>
> ** Changed in: libvirt (Ubuntu)
> Status: New => Incomplete
>
> --
> virsh --help {option} no longer works in shell
> https://bugs.launchpad.net/bugs/400404
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Geoff Low

187 Radstock Way
Merstham
Surrey
UK
RH1 3NQ

Ph: 01737817798
Mb: 07817754159
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Changed in libvirt (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Chuck Short (zulcss) wrote :

So you had a bash completion script that used to work for you?

Regards
chuck

Revision history for this message
Geoff Low (grlownzl-gmail) wrote :

Yep, it was pretty cool (if I may say so myself). Not complete; but was
certainly getting there.

Geoff

2009/10/20 Chuck Short <email address hidden>

> So you had a bash completion script that used to work for you?
>
> Regards
> chuck
>
> --
> virsh --help {option} no longer works in shell
> https://bugs.launchpad.net/bugs/400404
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Geoff Low

187 Radstock Way
Merstham
Surrey
UK
RH1 3NQ

Ph: 01737817798
Mb: 07817754159
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.