[Interest] QCommandLineParser, default arguments from env variable?

Thiago Macieira thiago.macieira at intel.com
Mon Jun 23 18:11:10 CEST 2014


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.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list