Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-562

pyside2-rcc -help exits with 1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 5.6, 5.9, 6.0
    • 1.2.x, 5.6, 5.9
    • PySide

    Description

      It can be useful to test the presence of executable by calling pyside2-rcc, unfortunately pyside2-rcc exits with code 1:

      pyside-setup/sources/pyside2-tools/pyrcc/main.cpp:

      int showHelp(const char *argv0, const QString &error)
      {
      fprintf(stderr, "PySide2 resource compiler\n");
      if (!error.isEmpty())
      fprintf(stderr, "%s: %s\n", argv0, error.toLatin1().constData());
      fprintf(stderr, "Usage: %s [options] <inputs>\n\n"
      "Options:\n"
      " -o file Write output to file rather than stdout\n"
      " -py2 Generate code for any Python v2.x version\n"
      " -py3 Generate code for any Python v3.x version (default)\n"
      " -name name Create an external initialization function with name\n"
      " -threshold level Threshold to consider compressing files\n"
      " -compress level Compress input files by level\n"
      " -root path Prefix resource access path with root path\n"
      " -no-compress Disable all compression\n"
      " -version Display version\n"
      " -help Display this information\n",
      argv0);
      return 1;
      }
      

      this is inconsistent with the behavior of pyside2-lupdate, pyside2-uic which both return 0

       

      also happens with -version:

      } else if(opt == "version") {
      fprintf(stderr, "Resource Compiler for Qt version %s\n", QT_VERSION_STR);
      return 1;
      

       

       

      Attachments

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

        Activity

          People

            jschueller Julien Schueller
            jschueller Julien Schueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes