Command line parser for Qt4

前端 未结 11 1769
离开以前
离开以前 2021-01-30 23:23

I am looking for a command line parser for Qt4.

I did a small google search, and found this: http://www.froglogic.com/pg?id=PublicationsFreeware&category=getopt how

11条回答
  •  南笙
    南笙 (楼主)
    2021-01-30 23:30

    That package does support --disable-foo and --enable-foo via opts.addSwitch("disable-foo", &foo_disabled); and opts.addSwitch("enable-foo", &foo_enabled);. You need handle checking both, and dealing with someone specifying both (oops).

    What I don't understand is how this has anything to do with QT4...

提交回复
热议问题