[libvirt] [PATCH] virsh: send-process-signal: add support for '-NUM' style of signal nums

Daniel P. Berrange berrange at redhat.com
Fri Sep 23 10:16:16 UTC 2016


On Fri, Sep 23, 2016 at 06:09:02PM +0800, Chen Hanxiao wrote:
> From: Chen Hanxiao <chenhanxiao at gmail.com>
> 
> As kill(1), add support for sending signal
> in form of "9" as well as "-9".

I'm not a fan of this as it introduces ambiguity which could hurt us if we
want to rewrite/extend the option parser - you can't distinguish an option
argument (-9) with name of "9", from a positional argument with a value of
"-9".


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list