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

QCommandLineParser does not parse long options correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.2.2
    • Core: Other
    • None
    • All

      Hi,

         QCommandLineOption pluginOpt(QStringList() << "p"
                                                    << "plugin",
                                      tr("path to the plugin"),
                                      tr("path"));
      

      Will say in --help that --plugin <plugin> is accepted while it actually does not work.
      It only accepts --plugin=<plugin>.

      Either the content of --help needs to be fixed or --plugin <plugins> needs to work.

      You can see how I used it here: https://github.com/free-audio/clap-host/blob/main/host/application.cc#L71

      Regards,
      Alex

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

            thiago Thiago Macieira
            abique Alexandre BIQUE
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes