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

QCommandLineParser::helpText fails if no options are added

XMLWordPrintable

    • 8928b0fbb (dev), 55a46ec00 (6.9), d490a1ac0 (6.8)

       

      #include <QCommandLineParser>
      int main()
      {
          QCommandLineParser p;
          p.addPositionalArgument("test", "This is a test", "<test!>");
          qDebug().noquote() << p.helpText();
          return 0;
      } 

      Expected output (something like this):

      Usage: <executable_name> <test!>
      
      Arguments:
        test        This is a test

      Actual output:

      Usage: <executable_name> <test!>
      
      Arguments:
        t This is a test
        e
        s
        t

       

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

            thiago Thiago Macieira
            madwinter Marcus Tillmanns
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes