mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-23 09:41:04 +00:00
Fail when an invalid algorithm is specified in --dithering-algorithm
This commit is contained in:
parent
e3701940fb
commit
7eff2b83c4
@ -352,6 +352,10 @@ void CliProcessor::process()
|
||||
ditheringAlgorithm = render::DitheringAlgorithm::OldOrdered;
|
||||
else if (value.value() == "ordered")
|
||||
ditheringAlgorithm = render::DitheringAlgorithm::Ordered;
|
||||
else
|
||||
throw std::runtime_error("--dithering-algorithm needs a valid algorithm name\n"
|
||||
"Usage: --dithering-algorithm <algorithm>\n"
|
||||
"Where <algorithm> can be none, old-ordered, or ordered");
|
||||
}
|
||||
// --color-mode <mode>
|
||||
else if (opt == &m_options.colorMode()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user