Skip to content

Commit

Permalink
Added plugin reset info for --help option
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemekWirkus committed Jul 31, 2015
1 parent 679508b commit 9596cec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions mbed_host_tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,18 @@ def init_host_test_cli_params():
help="Copy (flash the target) method selector. " + copy_methods_str,
metavar="COPY_METHOD")

reset_methods_str = "Plugin support: " + ', '.join(host_tests_plugins.get_plugin_caps('ResetMethod'))

parser.add_option("-r", "--reset",
dest="forced_reset_type",
help="Forces different type of reset. " + reset_methods_str)

parser.add_option("-C", "--program_cycle_s",
dest="program_cycle_s",
help="Program cycle sleep. Define how many seconds you want wait after copying binary onto target",
type="float",
metavar="PROGRAM_CYCLE_S")

parser.add_option("-r", "--reset",
dest="forced_reset_type",
help="Forces different type of reset")

parser.add_option("-R", "--reset-timeout",
dest="forced_reset_timeout",
metavar="NUMBER",
Expand Down
2 changes: 1 addition & 1 deletion mbed_host_tests/host_tests_runner/mbed_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, options=None):
self.DEFAULT_RESET_TOUT = 0

if self.options and self.options.port is None:
raise Exception("The serial port of the target mbed have to be provided as command line arguments")
raise Exception("The serial port (see: -p PORT) of the target mbed have to be provided as command line arguments")

# Options related to copy / reset mbed device
self.port = self.options.port
Expand Down

0 comments on commit 9596cec

Please sign in to comment.