//! Cross-platform helpers for top-level argument parsing.
usestd::ffi::OsStr;/// Returns an OS string as bytes for ASCII-only option parsing.
#[must_use]pub(crate)fnos_str_bytes(value:&OsStr)->Vec<u8>{os_str_bytes_impl(value)}#[cfg(unix)]fnos_str_bytes_impl(value:&OsStr)->Vec<u8>{usestd::os::unix::ffi::OsStrExt;
value.as_bytes().to_vec()}#[cfg(windows)]fnos_str_bytes_impl(value:&OsStr)->Vec<u8>{
value.to_string_lossy().as_bytes().to_vec()}