add logic for passing command line flags to the indexer