12dfb0f cli: When parsing options require name/value pairs

Authored and Committed by rcritten 3 years ago
    cli: When parsing options require name/value pairs
    
    If single-option values are combined together with invalid options
    an exception would be raised.
    
    For example -verbose was treated as -v -e rbose. Since rbose isn't
    a name/value pair things would blow up. This is now caught and
    a somewhat more reable error returned. The -v and -e are consumed,
    not much we can do about that, but at least a more usable error is
    returned.
    
    https://pagure.io/freeipa/issue/6115
    
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    
        
file modified
+7 -2