aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/sqlitestudiocli/commands/clicommandclose.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-04-30 18:30:36 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-04-30 18:30:36 -0400
commit3565aad630864ecdbe53fdaa501ea708555b3c7c (patch)
treec743e4ad0bad39ebdb2f514c7cc52d34a257ebbe /SQLiteStudio3/sqlitestudiocli/commands/clicommandclose.cpp
parent1fdc150116cad39aae5c5da407c3312b47a59e3a (diff)
New upstream version 3.4.4+dfsg.upstream/3.4.4+dfsg
Diffstat (limited to 'SQLiteStudio3/sqlitestudiocli/commands/clicommandclose.cpp')
-rw-r--r--SQLiteStudio3/sqlitestudiocli/commands/clicommandclose.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/SQLiteStudio3/sqlitestudiocli/commands/clicommandclose.cpp b/SQLiteStudio3/sqlitestudiocli/commands/clicommandclose.cpp
index 44fc72c..c2bb803 100644
--- a/SQLiteStudio3/sqlitestudiocli/commands/clicommandclose.cpp
+++ b/SQLiteStudio3/sqlitestudiocli/commands/clicommandclose.cpp
@@ -8,7 +8,7 @@ void CliCommandClose::execute()
if (!syntax.isArgumentSet(DB_NAME) && !cli->getCurrentDb())
{
println(tr("Cannot call %1 when no database is set to be current. Specify current database with %2 command or pass database name to %3.")
- .arg(cmdName("close")).arg(cmdName("use")).arg(cmdName("close")));
+ .arg(cmdName("close"), cmdName("use"), cmdName("close")));
return;
}
@@ -21,7 +21,7 @@ void CliCommandClose::execute()
println(tr("Connection to database %1 closed.").arg(db->getName()));
}
else
- println(tr("No such database: %1. Use %2 to see list of known databases.").arg(syntax.getArgument(DB_NAME)).arg(cmdName("dblist")));
+ println(tr("No such database: %1. Use %2 to see list of known databases.").arg(syntax.getArgument(DB_NAME), cmdName("dblist")));
}
else if (cli->getCurrentDb())
{
@@ -41,7 +41,7 @@ QString CliCommandClose::fullHelp() const
"Closes database connection. If the database was already closed, nothing happens. "
"If <name> is provided, it should be name of the database to close (as printed by %1 command). "
"The the <name> is not provided, then current working database is closed (see help for %2 for details)."
- ).arg(cmdName("dblist")).arg(cmdName("use"));
+ ).arg(cmdName("dblist"), cmdName("use"));
}
void CliCommandClose::defineSyntax()