featureforge icon indicating copy to clipboard operation
featureforge copied to clipboard

Experiment runner should take an optional argv argument

Open dmoisset opened this issue 10 years ago • 0 comments

It's customary when providing APIs for runners to provide an optional argv argument to use instead of sys.argv. This allows building custom runners more easily or overriding/defaulting arguments. It also makes the runner argumetn parsing easier to unit test

As an example of this API pattern in other places, you can take a look at https://github.com/docopt/docopt#api or https://docs.python.org/2/library/unittest.html#unittest.main

dmoisset avatar Apr 30 '14 20:04 dmoisset