opts: generate and show an option index

Also allows re-running of mkopts.pl automatically