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

Add option --qmljsdebugger only if build with QML module

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.14.0
    • Core: Other
    • None
    • All

    Description

      Since Qt5.14 (via this commit) an help option --help-all exists, which will be always added.

      Current behavior:
      If you develop a CUI --help-all only includes on option:

        --qmljsdebugger <value>     Activates the QML/JS debugger with a specified
                                    port. The value must be of format
                                    port:1234[,block]. "block" makes the application
                                    wait for a connection.
      

      Expected behavior:

      • Variant 1
        qmljsdebugger will be only added, in case the application a an application using QML (or using the QML module). Therefore if -qmljsdebugger is not present -help-all should not be added, as there exists no Qt option.
      • Variant 2)
        qmljsdebugger will be only in debug mode available, as I don't believe it is relevant to enduser
      • Variant 3)
        QCommandLineParser::addHelpOption() will be changed to QCommandLineParser::addHelpOption(bool includeQtOptions = true), so the developer can decide if the user should be confronted with advanced options

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            EliteScience Heiko Thiel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes