Description
Each CLI tool validates its inputs differently, leading to inconsistent user experience.
Examples
media-streams checks for missing tokens but does not validate -server values (accepts any string instead of rejecting invalid values)
media-calendar does not warn when all configured ArrInstance entries are invalid (empty URL or API key)
media-requests does not validate URL format before attempting a connection
arr-feed has MaxEvents bounds checking but only at config-build time, not flag-parse time
Proposed Fix
Standardize validation by:
- Validating flags at parse time where possible
- Rejecting invalid enum-like values (
-server) with a clear error message
- Adding a shared validation step before executing the main logic
Priority
Low — cosmetic in most cases, but improves DX.
Description
Each CLI tool validates its inputs differently, leading to inconsistent user experience.
Examples
media-streamschecks for missing tokens but does not validate-servervalues (accepts any string instead of rejecting invalid values)media-calendardoes not warn when all configuredArrInstanceentries are invalid (empty URL or API key)media-requestsdoes not validate URL format before attempting a connectionarr-feedhasMaxEventsbounds checking but only at config-build time, not flag-parse timeProposed Fix
Standardize validation by:
-server) with a clear error messagePriority
Low — cosmetic in most cases, but improves DX.