[Development] Qt Playground - Command Line Parser experiment

Thiago Macieira thiago.macieira at intel.com
Thu Mar 15 13:26:42 CET 2012


On quinta-feira, 15 de março de 2012 14.24.25, Laszlo Papp wrote:
> > 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.
> That was my worry previously as well. Would it be possible to refactor
> -foobar to --foobar for Qt5 (not using single dash for long options) ?
> Otherwise, as far as I see, we lose the short options which is
> something that the users would like to see.
> 
> We are beyond the feature freeze, thus it probably needs special
> acceptance in case yes. If it does not happen, I am unsure whether it
> can be done before Qt6 that way.

Refactoring the tools now is a complete no-go.

You want to:

 - change how the tools accept parameters
 - in tools that don't have good command-line parsing infrastructure
 - 4 weeks after feature-freeze

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120315/91a92bfb/attachment.sig>


More information about the Development mailing list