//! Shared client-side input validators.
//!
//! Validators here are not tied to a single command — they live in this
//! module so that any subcommand parsing the same value-shape can call
//! a single canonical implementation. On failure, validators return
//! `BzrError::InputValidation`, which exits with code 7.
pub use parse_iso8601_or_date;
use crateResult;
/// Validate an optional date string for use as a Bugzilla search filter.
///
/// `None` is passed through unchanged; `Some(s)` is canonicalized via
/// [`parse_iso8601_or_date`]. Wraps the common
/// `opt.as_deref().map(|s| parse_iso8601_or_date(s, flag)).transpose()`
/// idiom used at every CLI date-flag site.