From 891ed05926cbd7c384909a1c3717ffe68b657820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sun, 8 Jan 2023 20:58:41 +0100 Subject: [PATCH] We can now specify directly file path for acsmdownloader and adept_remove (-f stille keeped for compatibility) --- utils/acsmdownloader.cpp | 3 +++ utils/adept_remove.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/utils/acsmdownloader.cpp b/utils/acsmdownloader.cpp index 867205c..89f7793 100644 --- a/utils/acsmdownloader.cpp +++ b/utils/acsmdownloader.cpp @@ -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])) { diff --git a/utils/adept_remove.cpp b/utils/adept_remove.cpp index 77cda8e..c2b226d 100644 --- a/utils/adept_remove.cpp +++ b/utils/adept_remove.cpp @@ -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])) {