Process option names in rc file like dashdash

Convert "my-option" to "my_option" so names match up properly.