diff --git a/scripts/commands/epg/grab.ts b/scripts/commands/epg/grab.ts index 9e36a2c2..b350443c 100644 --- a/scripts/commands/epg/grab.ts +++ b/scripts/commands/epg/grab.ts @@ -31,7 +31,7 @@ program '--days ', 'Override the number of days for which the program will be loaded (defaults to the value from the site config)' ) - .argParser(value => parseInt(value)) + .argParser(value => (value !== undefined ? parseInt(value) : undefined)) .env('DAYS') ) .addOption(