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

return QCommandLineOptions

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Core: I/O
    • None

      I use QCommandLineParser by using the function 

      addOption({{"f", "folder" }, "Path to folder" , "path" });
      
      addOption({{"s", "size" }, "Size" , "size" });
      

      and other options with different syntaxes.

       

      It would be beneficial in some situations to get access later in the script to (a copy of) the private variable of the class containing the final list of CLI options, namely

      QList<QCommandLineOption> commandLineOptionList;

      see https://code.woboq.org/qt5/qtbase/src/corelib/tools/qcommandlineparser.cpp.html#QCommandLineParserPrivate::commandLineOptionList

      e.g. with a public function like these:

      QList<QCommandLineOption> getOptionList() { return commandLineOptionList};

       

      Thanks.

       

       

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

            thiago Thiago Macieira
            fmercury Ferdy Mercury
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes