fix: Fix outputdir arg
This commit is contained in:
parent
d5b2b8b31c
commit
a66e3c9f80
|
@ -39,7 +39,7 @@ scan2paperless \\
|
||||||
|
|
||||||
const tempDir = await Deno.makeTempDir();
|
const tempDir = await Deno.makeTempDir();
|
||||||
const device = args.d || args.device || Deno.env.get('SCANNER_DEFAULT_DEVICE');
|
const device = args.d || args.device || Deno.env.get('SCANNER_DEFAULT_DEVICE');
|
||||||
const outputDir = args.d || args.device || Deno.env.get('SCANNER_OUTPUT_DIR');
|
const outputDir = args.o || args.outputDir || Deno.env.get('SCANNER_OUTPUT_DIR');
|
||||||
const outputName = args._[0] || getRandomString();
|
const outputName = args._[0] || getRandomString();
|
||||||
|
|
||||||
const pagesToScanStr = args.n || args.pages;
|
const pagesToScanStr = args.n || args.pages;
|
||||||
|
|
Loading…
Reference in a new issue