On Mon, Jun 23, 2014 at 11:20 PM, Thiago Macieira
thiago.macie...@intel.com wrote:
Em seg 23 jun 2014, às 22:48:59, Mark Gaiser escreveu:
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
The
On 24 June 2014 10:26, Mark Gaiser mark...@gmail.com wrote:
I think I'll just look at how QCommandLineParser is doing that and
copy that logic.
I think there's no such logic. QCommandLineParser will already see the
arguments correctly split, i.e. the ones you're receiving into main.
Your
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
Hi,
Qt 5.2 introduced the rather nice QCommandLineParser class. It seems
to have every feature one can wish for yet i somehow seem to be
missing one small tiny feature :)
Some applications (daemons mostly) allow features like setting all
default arguments via an environment variable which would
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
On Mon, Jun 23, 2014 at 6:11 PM, Thiago Macieira
thiago.macie...@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
Em seg 23 jun 2014, às 22:48:59, Mark Gaiser escreveu:
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
The difficult part is the splitting. Be careful with quoted parts.
--
Thiago Macieira