Add config file support

This commit is contained in:
√(noham)²
2026-06-19 21:17:16 +02:00
parent 908ae04ddb
commit 93d24e5103
6 changed files with 102 additions and 10 deletions

View File

@@ -22,6 +22,7 @@ program
`Reader View theme (${VALID_THEMES.join(', ')})`
)
.option('-c, --css <path>', 'path to custom CSS file')
.option('--config <path>', 'path to config file (.pdfyrc, .pdfyrc.json, pdfy.config.js)')
.option('-p, --prefs <path>', 'path to extension preferences JSON')
.option(
'-o, --output <path>',
@@ -50,7 +51,8 @@ export function parseArgs () {
theme: opts.theme || null,
css: opts.css || null,
prefs: opts.prefs || null,
output: opts.output || null
output: opts.output || null,
config: opts.config || null
}
}
}