6#include <QtCore/qfileinfo.h>
7#include <QtCore/qdir.h>
20void QQmlToolingUtils::warnForInvalidDirs(
const QStringList &dirs,
const QString &origin)
26 << u
"Argument \"%1\" %2 does not exist."_s.arg(
path, origin);
31 <<
"Argument \"" <<
path <<
"\" " << origin <<
" is not a directory.";
42 warnForInvalidDirs(envPaths,
43 u
"from environment variable \"%1\""_s.arg(environmentVariableName));
55 warnForInvalidDirs(dirs, u
"passed to -%1"_s.arg(optionName));
The QCommandLineOption class defines a possible command-line option. \inmodule QtCore.
The QCommandLineParser class provides a means for handling the command line options.
QStringList values(const QString &name) const
Returns a list of option values found for the given option name optionName, or an empty list if not f...
bool isSet(const QString &name) const
Checks whether the option name was passed to the application.
static constexpr QChar listSeparator() noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
QStringList split(const QString &sep, Qt::SplitBehavior behavior=Qt::KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Splits the string into substrings wherever sep occurs, and returns the list of those strings.
GLsizei const GLchar *const * path
QString qEnvironmentVariable(const char *varName, const QString &defaultValue)