@@ -6,6 +6,7 @@ import { randomBytes } from 'node:crypto';
66import { spawnSync } from 'node:child_process' ;
77import { configDir } from '@profullstack/sh1pt-core' ;
88import { describeInput , resolveInput } from '../input.js' ;
9+ import { parsePositiveSafeInteger , parseQuietHours } from './iterate-options.js' ;
910
1011// agentsCmd moved to root level — see https://github.com/profullstack/sh1pt/issues/235
1112
@@ -293,8 +294,8 @@ iterateCmd
293294 . option ( '--agent <id>' , 'claude | codex | qwen' , 'claude' )
294295 . option ( '--scope <area>' , 'copy | pricing | onboarding | perf | bugs | all' , 'all' )
295296 . option ( '--cloud' , 'schedule in sh1pt cloud instead of local cron' )
296- . option ( '--interval <seconds>' , 're-check interval in seconds' , Number , 3600 )
297- . option ( '--quiet-hours <start-end>' , 'pause during these local hours, e.g. 22-08' )
297+ . option ( '--interval <seconds>' , 're-check interval in seconds' , parsePositiveSafeInteger , 3600 )
298+ . option ( '--quiet-hours <start-end>' , 'pause during these local hours, e.g. 22-08' , parseQuietHours )
298299 . option ( '--stop' , 'remove the watch configuration' )
299300 . option ( '--status' , 'show current watch configuration' )
300301 . action ( async ( opts : {
0 commit comments