optparse: add an indexed completer.