Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43259

QCommandLineParser::​addOptions always returns false (according to the documentation)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.1
    • 5.4.0
    • Documentation
    • None

    Description

      Hi,

      5.4.0 introduces: http://doc.qt.io/qt-5/qcommandlineparser.html#addOptions

      But it's documentation looks a bit odd to me. It says:
      --------------------
      Adds the options options to look for while parsing.

      Returns false if adding any of the options failed; otherwise returns false.

      Cf. addOption() for when it may fail.

      This function was introduced in Qt 5.4.
      --------------------

      I read the "Returns false if adding any of the options failed; otherwise returns false." as always returns false. That can't possible be true, right?

      Then one line down i see: "Cf. addOption() for when it may fail."
      Where did "Cf" come from?

      I think this documentation could be cleared up a little.

      Cheers,
      Mark

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vertries Nico Vertriest (Inactive)
            markg85 Mark
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes