Add --base meta-argument to set prev/pend/deltas as subdirs

This commit is contained in:
2026-03-07 01:30:06 +00:00
parent 96e3024991
commit e999fca352
2 changed files with 13 additions and 3 deletions

View File

@@ -12,9 +12,10 @@ Commands:
Options:
--source <path> SOURCE directory (required)
--prev <path> PREV directory (required)
--pend <path> PEND directory (required)
--deltas <path> DELTAS directory (required)
--base <path> Sets --prev, --pend, --deltas as subdirs of base path
--prev <path> PREV directory (default: <base>/previous)
--pend <path> PEND directory (default: <base>/pending)
--deltas <path> DELTAS directory (default: <base>/deltas)
--backend <name> Delta backend: zstd (default), xdelta3
--config <file> Load options from JSON config file (flags override)
--dry-run Print what would happen, execute nothing
@@ -26,6 +27,7 @@ export function parseArgs(argv) {
args: argv,
options: {
source: { type: 'string' },
base: { type: 'string' },
prev: { type: 'string' },
pend: { type: 'string' },
deltas: { type: 'string' },