[Qbs] Any novice tickets

Иван Комиссаров abbapoh at gmail.com
Tue Aug 7 00:48:05 CEST 2018


I don’t think it’s too hackish, but there may be some corner cases that will require proper documentation.
What comes to my mind, how you suppose to treat positionalArguments() of the top-level parser? Should it be empty/contain all subparser arguments/what’s left after subparsing?
Anyway, I used QCommandLineParser for the qbs-style command line parsing and that worked except it requires a lot of copy/pasting 

> 7 авг. 2018 г., в 0:58, Richard Weickelt <richard at weickelt.de> написал(а):
> 
> 
>>> 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 ...
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs




More information about the Qbs mailing list