Skip to content

Commit 971bc14

Browse files
committed
fix unuse arg
1 parent 970f402 commit 971bc14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/platform/silabs/ensure_local_custom_app_task.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323

2424

2525
def main():
26-
if len(sys.argv) < 4:
26+
if len(sys.argv) < 3:
2727
sys.stderr.write(
28-
"usage: ensure_local_custom_app_task.py <platform_silabs_dir> <app_project_dir> <root_build_dir>\n"
28+
"usage: ensure_local_custom_app_task.py <platform_silabs_dir> <root_build_dir>\n"
2929
)
3030
sys.exit(1)
3131

3232
base = os.getcwd()
3333
platform_dir = os.path.normpath(os.path.abspath(os.path.join(base, sys.argv[1])))
34-
build_dir = os.path.normpath(os.path.abspath(os.path.join(base, sys.argv[3])))
34+
build_dir = os.path.normpath(os.path.abspath(os.path.join(base, sys.argv[2])))
3535

3636
template_cpp = os.path.join(platform_dir, "CustomAppTask.cpp")
3737
template_h = os.path.join(platform_dir, "CustomAppTask.h")

0 commit comments

Comments
 (0)