• G
    virsh: distinguish errors between missing argument and wrong option · dd71fa11
    Guannan Ren 提交于
    Specifying ':' to suppress the error messages printed by getopt().
    Then, distinguish the two types of errors.
    
    Before:
     # virsh -c
       virsh: option requires an argument -- 'c'
       error: unsupported option '-?'. See --help.
    
    After:
     # virsh -c
       error: option '-c' requires an argument
    
     # virsh -x
       error: unsupported option '-x'. See --help.
    dd71fa11
virsh.c 80.4 KB