diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-06-13 20:22:33 +0200 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-06-13 20:22:33 +0200 |
commit | 93883014f75ee9005a69d57ccb2d653015b6c216 (patch) | |
tree | e7056881a5d8d875b61a6818e0fcab73a3b1569f /src/parseopts.rs | |
parent | fe367504c2ec1f3d8762e314538b205e948c06a0 (diff) | |
download | textgraph-93883014f75ee9005a69d57ccb2d653015b6c216.tar.gz textgraph-93883014f75ee9005a69d57ccb2d653015b6c216.zip |
Simplify calculations, use a more nested struct for pixels
Diffstat (limited to 'src/parseopts.rs')
-rw-r--r-- | src/parseopts.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parseopts.rs b/src/parseopts.rs index 3a06114..60f811e 100644 --- a/src/parseopts.rs +++ b/src/parseopts.rs @@ -118,10 +118,10 @@ pub fn parseopt(opts: &mut OptsBuilder, arg: &str, value: Option<String>, progna opts.graph_type = GraphType::Ascii; } "braille" | "braille6" => { - opts.graph_type = GraphType::Braille(BrailleType::dot6); + opts.graph_type = GraphType::Braille(BrailleType::Dot6); } "braille8" => { - opts.graph_type = GraphType::Braille(BrailleType::dot8); + opts.graph_type = GraphType::Braille(BrailleType::Dot8); } t => { println!( @@ -161,7 +161,7 @@ pub fn parseopt(opts: &mut OptsBuilder, arg: &str, value: Option<String>, progna opts.graph_type = GraphType::Ascii; } "b" | "braille" => { - opts.graph_type = GraphType::Braille(BrailleType::dot6); + opts.graph_type = GraphType::Braille(BrailleType::Dot6); } "c" | "cut" => { opts.cut = true; |