Commits

Sam Skillman committed be44666

Make the store-local a flag with no arguments, adding a help for it.

Comments (0)

Files changed (1)

yt/utilities/answer_testing/framework.py

         parser.add_option("--answer-store", dest="store_results",
             default=False, action="store_true")
         parser.add_option("--local-store", dest="store_local_results",
-            default=False)
+            default=False, action="store_true", help="Store/Load local results?")
 
     def configure(self, options, conf):
         super(AnswerTesting, self).configure(options, conf)
             options.compare_name = _latest
 
         # We only either store or test.
-        if options.store_local_results == 'True':
+        if options.store_local_results:
             AnswerTestingTest.reference_storage = \
                 self.storage = \
                     AnswerTestLocalStorage("%s/%s" % \