fixed handling of long options

Long options passed to commands caused usage being printed.