Skip to content

Commit 640ea73

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
EXAMPLES: improve examples.py cli help messages
1 parent fa86629 commit 640ea73

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tools/test/examples/examples.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,21 @@ def main():
5050
type=argparse_many(lambda x: x),
5151
default=[])
5252
subparsers = parser.add_subparsers()
53-
import_cmd = subparsers.add_parser("import")
53+
import_cmd = subparsers.add_parser("import", help="import of examples in config file" )
5454
import_cmd.set_defaults(fn=do_import)
55-
clone_cmd = subparsers.add_parser("clone")
55+
clone_cmd = subparsers.add_parser("clone", help="clone examples in config file" )
5656
clone_cmd.set_defaults(fn=do_clone)
5757
list_cmd = subparsers.add_parser("list", help="list examples in config file in a table")
5858
list_cmd.set_defaults(fn=do_list)
5959
symlink_cmd = subparsers.add_parser("symlink", help="create symbolic link to given mbed-os PATH")
6060
symlink_cmd.add_argument("PATH", help=" path of mbed-os to be symlinked")
6161
symlink_cmd.set_defaults(fn=do_symlink)
62-
deploy_cmd = subparsers.add_parser("deploy", help="mbed deploy" )
62+
deploy_cmd = subparsers.add_parser("deploy", help="mbed deploy for examples in config file" )
6363
deploy_cmd.set_defaults(fn=do_deploy)
64-
version_cmd = subparsers.add_parser("tag")
65-
version_cmd.add_argument("tag")
66-
version_cmd.set_defaults(fn=do_versionning)
67-
compile_cmd = subparsers.add_parser("compile")
64+
version_cmd = subparsers.add_parser("update", help="update mbed-os to sepcific tags")
65+
version_cmd.add_argument("TAG", help=" tag of mbed-os")
66+
version_cmd.set_defaults(fn=do_update)
67+
compile_cmd = subparsers.add_parser("compile", help="compile of examples" )
6868
compile_cmd.set_defaults(fn=do_compile),
6969
compile_cmd.add_argument(
7070
"toolchains", nargs="*", default=SUPPORTED_TOOLCHAINS,
@@ -96,7 +96,7 @@ def main():
9696
default=False,
9797
help="Verbose diagnostic output")
9898

99-
export_cmd = subparsers.add_parser("export")
99+
export_cmd = subparsers.add_parser("export", help="export of examples")
100100
export_cmd.set_defaults(fn=do_export),
101101
export_cmd.add_argument(
102102
"ide", nargs="*", default=SUPPORTED_IDES,
@@ -155,7 +155,7 @@ def do_compile(args, config, examples):
155155
print("Number of failures = %d" % failures)
156156
return failures
157157

158-
def do_versionning(args, config, examples):
158+
def do_update(args, config, examples):
159159
""" Test update the mbed-os to the version specified by the tag """
160160
return lib.update_mbedos_version(config, args.tag, examples)
161161

0 commit comments

Comments
 (0)