Adding option parsing so this isnt always connecting to test at localhost.
Resolving merge of dirents cache with option parsing.
Revert "Resolving merge of dirents cache with option parsing."

This reverts commit db2d7fc83671578e4da6ee19bbfdd025bea8e262.