Skip to content

Commit ade5bdc

Browse files
committed
- add warning for missing tools_help configs
1 parent d1b81ee commit ade5bdc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/pmbuild.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,14 @@ def run_tool_help(config, task_name, tool):
968968
tool_help = tools_help[tool]
969969
p = subprocess.Popen(exe + " " + tool_help["help_arg"], shell=True)
970970
p.wait()
971+
else:
972+
print_warning("[warning] help is not configured for {}:".format(tool))
973+
print_warning(" add a tools_help entry to your config.jsn:")
974+
print_warning(" tools_help: {")
975+
print_warning(" {}: {{".format(tool))
976+
print_warning(" help_arg: <-h, -help, --help?>")
977+
print_warning(" }")
978+
print_warning(" }")
971979

972980

973981
# runs shell commands in the current environment

0 commit comments

Comments
 (0)