I don't think you can pass -q with no argument (empty string); using the kwargs approach will get around the need for this logic