Allow an index to be specified in command-line options