On Thursday 15 March 2012 08:26:14 [email protected] wrote: > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On > > Behalf Of ext Hugo Parente Lima > > Sent: Thursday, March 15, 2012 12:16 PM > > To: [email protected] > > Cc: Mark Constable > > Subject: Re: [Development] Qt Playground - Command Line Parser > > experiment > > > > On Thursday 15 March 2012 07:29:23 Mark Constable wrote: > > > Any simple standard cli args parser included with Qt would be > > > overwhelmingly better than none at all even if it's just -s shortops > > > (/s for win) and worry about --longopts and tar-like variations for > > > Qt6+. The simpler the better as long as it's universally available in > > > qtcore, if possible, sooner than later. > > > > Hmmm... ok, let's go again... should I elaborate this: > > > > https://github.com/hugopl/qcmdlineparser > > ([email protected]:hugopl/qcmdlineparser.git) > > > > or just "git push origin :master" and forget about? > > > > Some usage examples can be found on the small unit test: > > > > https://github.com/hugopl/qcmdlineparser/blob/master/qcmdlineparsertes > > t.cpp > > I only checked the tests file, but it seems like you're going for the GNU > style where options following '-' are always one character letters.The Qt > tools itself do not follow this style, e.g. qmake -project, not qmake > --project, or qmake -p :) To use the parser also internally , it should > IMO also support a style where '-help' is one valid argument.
It already accepts and there are tests for it, the default "auto-help" adds a "--help" and "-h", but can easily add a "-help" too. The translation of "-" into "/" on Windows isn't done but is easy to do. > Just my 2 cents > > Kai -- Hugo Parente Lima INdT - Instituto Nokia de Tecnologia
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
