[Interest] QCommandLineParser, default arguments from env variable?

Mark Gaiser markg85 at gmail.com
Mon Jun 23 22:48:59 CEST 2014


On Mon, Jun 23, 2014 at 6:11 PM, Thiago Macieira
<thiago.macieira at intel.com> wrote:
> Em seg 23 jun 2014, às 14:18:35, Mark Gaiser escreveu:
>> I know that you can set the default arguments in code with
>> QCommandLineOption and that works rather well. But i miss (or am i
>> overlooking it?) an option to set default arguments via a command line
>> define.
>
> getenv("APPNAME_ARGS"), split it into a QStringList and pass it to the
> command-line parser.
>
That sounds like a nice solution.
Thank you for the hint :)

> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list