Skip to content

Commit

Permalink
QSocCliWorker: Add bus command parsing in parseRoot
Browse files Browse the repository at this point in the history
- Implemented parsing for 'bus' command in parseRoot method.
- Extended command-line options to include 'bus' functionality.
- Updated help message to reflect new 'bus' command support.

Signed-off-by: Huang Rui <[email protected]>
  • Loading branch information
vowstar committed Nov 25, 2023
1 parent d8d282d commit c753473
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cli/qsoccliworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ bool QSocCliWorker::parseRoot(const QStringList &appArguments)
"gui Start the software in GUI mode.\n"
"project Create, update of project.\n"
"module Import, update of module.\n"
"bus Import, update of bus.\n"
"schematic Processing of Schematic.\n"
"generate Generate rtl, such as verilog, etc.\n"),
"<command> [command options]");
Expand Down Expand Up @@ -158,6 +159,11 @@ bool QSocCliWorker::parseRoot(const QStringList &appArguments)
if (!parseModule(nextArguments)) {
return false;
}
} else if (command == "bus") {
nextArguments.removeOne(command);
if (!parseBus(nextArguments)) {
return false;
}
} else if (command == "schematic") {
return showError(
1, QCoreApplication::translate("main", "Error: not implemented schematic yet."));
Expand Down

0 comments on commit c753473

Please sign in to comment.