[Interest] QCommandLineParser, default arguments from env variable?

Thiago Macieira thiago.macieira at intel.com
Tue Jun 24 16:55:56 CEST 2014


Em ter 24 jun 2014, às 10:26:39, Mark Gaiser escreveu:
> I think I'll just look at how QCommandLineParser is doing that and
> "copy" that logic.
> Would it be a nice idea to add a function to QCommandLineParser with
> the following signature:
> 
> QStringList QCommandLineParser::parse(const QString& arguments)

Like Peppe said, we don't have that code in QCLP. We receive the command-line 
properly split from main: argc and argv.

On Windows, you have CommandLineToArgvW. On Unix, there's no such thing in the 
application, the shell does the splitting.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list