• D
    Properly handle -h / -V for --help/--version aliases in virtlockd/libvirtd · 63ba687f
    Daniel P. Berrange 提交于
    The virtlockd/libvirtd daemons had listed '?' as the short option
    for --help. getopt_long uses '?' for any unknown option. We want
    to be able to distinguish unknown options (which use EXIT_FAILURE)
    from correct usage of help (which should use EXIT_SUCCESS). Thus
    we should use 'h' as a short option for --help. Also add this to
    the man page docs
    
    The virtlockd/libvirtd daemons did not list any short option
    for the --version arg. Add -V as a valid short option, since
    -v is already used for --verbose.
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    63ba687f
lock_daemon.c 40.2 KB