[Qbs] Any novice tickets

Christian Kandeler christian.kandeler at qt.io
Tue Aug 7 09:50:21 CEST 2018

On Mon, 6 Aug 2018 23:58:50 +0200
Richard Weickelt <richard at weickelt.de> wrote:

> >> https://bugreports.qt.io/browse/QBS-511 (QBS help text is not properly
> >> format in windows cmd shell) I guess, QBS doesn't use QCommandLineParser at
> >> the moment?  
> > 
> > No, and I don't think it can, because of the "command plus additional arguments" syntax that qbs uses.  
> This would be a very useful add-on in QCommandLineParser. Is the following
> work-around too hackish?
> 1. Parse the second argument in argv (or QCoreApplication::arguments())
> manually in order to deduce the command before initializing an appropriate
> QCommandLineParser object.
> 2. Then remove the second argument and pass the resulting list (without the
> command) to QCommandLineParser.
> 1. qbs build --options
> 2. qbs --option ...

The thing is that at this point, I don't think qbs has much to gain by switching to QCommandLineParser. The whole parser infrastructure is in place, and adding commands and options is simple. We will use QCommandLineParser for new helper tools, though (qbs-create-project already does).


More information about the Qbs mailing list