[Qbs] qbs run --dry-run not working ?
Christian Kandeler
christian.kandeler at qt.io
Thu Dec 14 17:38:07 CET 2017
On Thu, 14 Dec 2017 16:21:42 +0100
Damien Courtois <damien.courtois at gmail.com> wrote:
> I'm not sure if this is a bug or me not understanding the documentation,
> but when I use `qbs run [...] --dry-run profile:foo debug` my project is
> still started.
> Isn't this option supposed to suppress the actual command executions ?
The --dry-run option is a build option and thus "command execution" refers to compilers and such. It's only available for "run" because "run" includes "build" as a sub-step.
If I understand you correctly, you want output such as "would try to run <path to app>"? I suppose that could be added.
> As a side note, I'm doing this to get the full path to the executable of my
> project. It's the only way I found, but I'd like to avoid starting the
> executable just to get this information. Maybe there is a better way to
> query this kind of information ?
We don't currently have command-line options for this, though this sounds as if it would fit as an extension to the list-products command.
What are you planning to do with that information?
Christian
More information about the Qbs
mailing list