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
For Gerrit Dashboard: PYSIDE-562 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
204578,3 | pyside2-rcc -help to return 0 | dev | pyside/pyside-tools | Status: MERGED | +2 | 0 |
206901,1 | pyside2-rcc -help to return 0 | 5.6 | pyside/pyside-tools | Status: ABANDONED | 0 | 0 |
206903,3 | Return 0 with pyside2-rcc -help | 5.6 | pyside/pyside-tools | Status: MERGED | +2 | 0 |
262949,1 | Return 0 with pyside2-rcc -help | 5.9 | pyside/pyside-tools | Status: ABANDONED | 0 | 0 |
263261,1 | pyside2-rcc -help to return 0 | 5.9 | pyside/pyside-tools | Status: ABANDONED | 0 | 0 |