Skip to content

Commit

Permalink
- add warning for missing tools_help configs
Browse files Browse the repository at this point in the history
  • Loading branch information
polymonster committed Mar 28, 2023
1 parent d1b81ee commit ade5bdc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/pmbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,14 @@ def run_tool_help(config, task_name, tool):
tool_help = tools_help[tool]
p = subprocess.Popen(exe + " " + tool_help["help_arg"], shell=True)
p.wait()
else:
print_warning("[warning] help is not configured for {}:".format(tool))
print_warning(" add a tools_help entry to your config.jsn:")
print_warning(" tools_help: {")
print_warning(" {}: {{".format(tool))
print_warning(" help_arg: <-h, -help, --help?>")
print_warning(" }")
print_warning(" }")


# runs shell commands in the current environment
Expand Down

0 comments on commit ade5bdc

Please sign in to comment.