Turned extra::getopts functions into methods
Some minor api and doc adjustments
auto merge of #9267 : Kimundi/rust/master, r=huonw