diff --git a/cli/dcoscli/help/main.py b/cli/dcoscli/help/main.py index 6d48f3e..ff07343 100644 --- a/cli/dcoscli/help/main.py +++ b/cli/dcoscli/help/main.py @@ -76,7 +76,7 @@ def _help(command): results = [(c, default_command_info(c)) for c in subcommand.default_subcommands()] paths = subcommand.list_paths() - with ThreadPoolExecutor(max_workers=len(paths)) as executor: + with ThreadPoolExecutor(max_workers=max(len(paths), 1)) as executor: results += list(executor.map(subcommand.documentation, paths)) commands_message = options\ .make_command_summary_string(sorted(results))