Don't show help for algorithms which can't be run in qgis_process

Fixes #54914
This commit is contained in:
Nyall Dawson 2023-10-12 09:32:08 +10:00
parent 872901a8b3
commit 94b62accf2

View File

@ -781,6 +781,12 @@ int QgsProcessingExec::showAlgorithmHelp( const QString &inputId, bool useJson )
}
}
if ( alg->flags() & QgsProcessingAlgorithm::FlagNotAvailableInStandaloneTool )
{
std::cerr << QStringLiteral( "The \"%1\" algorithm is not available for use outside of the QGIS desktop application\n" ).arg( id ).toLocal8Bit().constData();
return 1;
}
QVariantMap json;
if ( !useJson )
{