mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 20:22:01 -06:00
6 lines
218 B
Rust
6 lines
218 B
Rust
use crate::utils::parse::parse_resolution;
|
|
use crunchyroll_rs::media::Resolution;
|
|
|
|
pub fn clap_parse_resolution(s: &str) -> Result<Resolution, String> {
|
|
parse_resolution(s.to_string()).map_err(|e| e.to_string())
|
|
}
|