Skip to content

Commit

Permalink
Bug fixed: "apio init" should show the help
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Feb 20, 2024
1 parent 95c9b00 commit d8afea2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apio/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"--top-module",
type=str,
metavar="top_module",
default="main",
help="Set the top_module in the init file",
)
@click.option(
Expand All @@ -51,6 +50,9 @@ def cli(ctx, board, top_module, scons, project_dir, sayyes):
if scons:
Project().create_sconstruct(project_dir, "ice40", sayyes)
elif board:
# -- Set the default top_module when creating the ini file
if not top_module:
top_module = "main"
Project().create_ini(board, top_module, project_dir, sayyes)
elif top_module:
print("INIT TOP-MODULE!!")
Expand Down

0 comments on commit d8afea2

Please sign in to comment.