aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs/parser/commandlineoption.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2012-12-07 16:17:26 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2012-12-11 17:37:30 +0100
commitf3a9442a2a3af7ab33869050e959ada424e713f7 (patch)
treea0cad0499bc608a9105769cad87fa421dfba610e /src/app/qbs/parser/commandlineoption.cpp
parente9b8558b6c0de60bc7775ff17e808078120eb69e (diff)
Make the "run" command easier to use.
Instead of forcing the user to give the file name of the executable (which is usually different on Linux and Windows) and trying to find a product for it, we now take the product name and deduce the executable. This is a much more sensible approach. Change-Id: Id90be26a83194761e04dcabc19c2a26ff5062d95 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/app/qbs/parser/commandlineoption.cpp')
-rw-r--r--src/app/qbs/parser/commandlineoption.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/qbs/parser/commandlineoption.cpp b/src/app/qbs/parser/commandlineoption.cpp
index 77a7a6935..8617a6a58 100644
--- a/src/app/qbs/parser/commandlineoption.cpp
+++ b/src/app/qbs/parser/commandlineoption.cpp
@@ -233,7 +233,7 @@ QString ChangedFilesOption::longRepresentation() const
QString ProductsOption::description(CommandType command) const
{
const QString prefix = Tr::tr("%1|%2").arg(longRepresentation(), shortRepresentation());
- if (command == ShellCommandType) {
+ if (command == ShellCommandType || command == RunCommandType) {
return Tr::tr("%1 <name>\n"
"\tUse the specified product.\n").arg(prefix);
}