fixed issue with multiple shortopts.