Add scriptarg to cli options
This commit is contained in:
@@ -185,7 +185,7 @@ void BatchProcessing::refreshPaths()
|
||||
for(int i=0; i<_ui->pathsList->count(); i++)
|
||||
paths.append(_ui->pathsList->item(i)->text());
|
||||
_paths = scanDirectories(paths);
|
||||
_engine->setParams("", _paths, _ui->outputPath->text());
|
||||
_engine->setParams("", _paths, _ui->outputPath->text(), QString());
|
||||
}
|
||||
|
||||
void BatchProcessing::addFiles()
|
||||
@@ -268,7 +268,7 @@ void BatchProcessing::runScript()
|
||||
else
|
||||
script = ":/scripts/" + script;
|
||||
|
||||
_engineThread->setParams(script, _paths, _ui->outputPath->text());
|
||||
_engineThread->setParams(script, _paths, _ui->outputPath->text(), QString());
|
||||
_engineThread->start();
|
||||
_ui->startButton->setEnabled(false);
|
||||
_ui->stopButton->setEnabled(true);
|
||||
@@ -282,7 +282,7 @@ void BatchProcessing::runScript()
|
||||
}
|
||||
}
|
||||
|
||||
void BatchProcessing::runScript(const QString &script, bool exit)
|
||||
void BatchProcessing::runScript(const QString &script, const QString &arg, bool exit)
|
||||
{
|
||||
_ui->log->clear();
|
||||
{
|
||||
@@ -295,7 +295,7 @@ void BatchProcessing::runScript(const QString &script, bool exit)
|
||||
QFileInfo outDir(_ui->outputPath->text());
|
||||
if(outDir.exists() && outDir.isWritable())
|
||||
{
|
||||
_engineThread->setParams(script, _paths, _ui->outputPath->text());
|
||||
_engineThread->setParams(script, _paths, _ui->outputPath->text(), arg);
|
||||
_engineThread->start();
|
||||
_ui->startButton->setEnabled(false);
|
||||
_ui->stopButton->setEnabled(true);
|
||||
|
||||
Reference in New Issue
Block a user