CLI: move indexopts variable out of shared options block