diff --git a/bin/task_bench/main.py b/bin/task_bench/main.py index 13f318b3..06726020 100644 --- a/bin/task_bench/main.py +++ b/bin/task_bench/main.py @@ -140,7 +140,7 @@ from larv_review.history_commands import read_places from task_bench.record_figures import recorded_bench from run_heavy.capped_docker import SHARE_VARIABLE -USAGE = "usage: task-bench --image --test [--base ] [--head ] [--prefix ] [--seed ] [--bugs ] [--runs ] [--record-figures], or task-bench --tasks features --image --test [--base ] [--head ] [--runs ] [--record-figures], or task-bench gather" +USAGE = "usage: task-bench --image --test [--base ] [--head ] [--prefix ] [--seed ] [--bugs ] [--runs ] [--record-figures], or task-bench --tasks features|data-sources --image --test [--base ] [--head ] [--runs ] [--record-figures], or task-bench gather" # A panel of three readers, seated as the README's audience, picked these options on 2026-11-21, each 3 to 0. OPTIONS = ("--base", "--bugs", "--head", "--image", "--prefix", "--record-figures", "--runs", "--seed", "--tasks", "--test") # The one option that takes no value. diff --git a/bin/task_bench/test_registers.py b/bin/task_bench/test_registers.py index f717dcc0..671299ea 100644 --- a/bin/task_bench/test_registers.py +++ b/bin/task_bench/test_registers.py @@ -182,6 +182,7 @@ class OptionsTest(unittest.TestCase): def test_data_sources_is_a_kind_of_task_that_runs_5_times_at_each_side_by_default(self): self.assertEqual(self.options("--tasks", "data-sources")["--runs"], "5") self.assertEqual(self.options("--tasks", "sources").reason, "--tasks takes bugs, features or data-sources, not sources") + self.assertIn(", or task-bench --tasks features|data-sources --image ", main.USAGE) def test_the_options_that_choose_bugs_are_refused_with_data_sources(self): self.assertEqual(self.options("--tasks", "data-sources", "--seed", "2").reason, "--seed is for a bench of bugs, so it doesn't go with --tasks data-sources")