implemented braille support, including --threshold flag

This commit is contained in:
2023-02-08 22:02:49 +01:00
parent 3fdaa53d23
commit 2b9817080e
4 changed files with 55 additions and 16 deletions

View File

@@ -30,6 +30,11 @@ pub struct Cli {
/// Takes priority over '--width'
#[arg(short = 'f', long)]
pub full: bool,
/// use a custom threshold when converting to braille
///
/// default is 128
#[arg(default_value_t = 128, long)]
pub threshold: u8,
/// use a custom character map for output
///
/// The character map is interpreted from dark(first character) to light(last character).