Skip to content

Commit

Permalink
QSocCliWorker: Replace 'library' option with 'base' in module import
Browse files Browse the repository at this point in the history
- Update CLI parsing in QSocCliWorker to use 'base' option
  instead of 'library' for specifying module library base name
- Adjust command line option descriptions and variable bindings
  to reflect the new 'base' option in module import functionality
- Ensure consistency in command line interface and internal variable naming

Signed-off-by: Huang Rui <vowstar@gmail.com>
  • Loading branch information
vowstar committed Nov 19, 2023
1 parent c634535 commit 0f5bdd3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cli/qsoccliparsemodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ bool QSocCliWorker::parseModuleImport(const QStringList &appArguments)
QCoreApplication::translate("main", "The path to the project directory."),
"project directory"},
{{"p", "project"}, QCoreApplication::translate("main", "The project name."), "project name"},
{{"l", "library"},
QCoreApplication::translate("main", "The module library name."),
"module library name"},
{{"b", "base"},
QCoreApplication::translate("main", "The base name of the module library."),
"library base name"},
{{"r", "regex"},
QCoreApplication::translate("main", "The Verilog module name or regex."),
QCoreApplication::translate("main", "The module name or regex."),
"module name or regex"},
{{"f", "filelist"},
QCoreApplication::translate(
Expand All @@ -83,7 +83,7 @@ bool QSocCliWorker::parseModuleImport(const QStringList &appArguments)

parser.parse(appArguments);
const QStringList cmdArguments = parser.positionalArguments();
const QString &libraryName = parser.isSet("library") ? parser.value("library") : "";
const QString &libraryName = parser.isSet("base") ? parser.value("base") : "";
const QString &moduleName = parser.isSet("regex") ? parser.value("regex") : "";
const QStringList &filePathList = cmdArguments;

Expand Down

0 comments on commit 0f5bdd3

Please sign in to comment.