We can now specify directly file path for acsmdownloader and adept_remove (-f stille keeped for compatibility)

This commit is contained in:
Grégory Soutadé 2023-01-08 20:58:41 +01:00
parent fc839e671a
commit 891ed05926
2 changed files with 6 additions and 0 deletions

View File

@ -290,6 +290,9 @@ int main(int argc, char** argv)
gourou::DRMProcessor::setLogLevel(verbose);
if (optind == argc-1)
acsmFile = argv[optind];
if ((!acsmFile && !exportPrivateKey) || (outputDir && !outputDir[0]) ||
(outputFile && !outputFile[0]))
{

View File

@ -243,6 +243,9 @@ int main(int argc, char** argv)
gourou::DRMProcessor::setLogLevel(verbose);
if (optind == argc-1)
inputFile = argv[optind];
if (!inputFile || (outputDir && !outputDir[0]) ||
(outputFile && !outputFile[0]))
{