[skip ci] adjust script
This commit is contained in:
1 parent
cb7a043fb1
commit
bbd2d9c756
1 file changed
+5
-2
+5
-2
@@ -10,14 +10,17 @@ function getArgumentParser() {
|
|||||||
description: 'Take a screenshot of the Roku device'
|
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;
|
return parser;
|
||||||
}
|
}
|
||||||
|
|
||||||
const parser = getArgumentParser();
|
const parser = getArgumentParser();
|
||||||
const args = parser.parse_args()
|
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']);
|
const config = getEnvVars(['ROKU_DEV_TARGET', 'ROKU_DEVPASSWORD']);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user