[skip ci] adjust script

This commit is contained in:
Brahim Hadriche committed 2024-06-12 12:55:32 -04:00
1 parent cb7a043fb1
commit bbd2d9c756
1 file changed
+5 -2
+5 -2
View File
@@ -10,14 +10,17 @@ function getArgumentParser() {
description: 'Take a screenshot of the Roku device'
});
parser.add_argument('filename', { help: 'Path where the screenshot will be saved (without extension)' });
parser.add_argument('filename', { help: 'Path where the screenshot will be saved (without extension)', nargs: '?' });
return parser;
}
const parser = getArgumentParser();
const args = parser.parse_args()
const filename = args.filename;
let filename = args.filename;
if (!filename) {
filename = 'screenshot';
}
const config = getEnvVars(['ROKU_DEV_TARGET', 'ROKU_DEVPASSWORD']);