Take non-lowercase options into account

This commit is contained in:
Jeremy Baxter 2023-03-27 12:52:36 +13:00
parent 4992a8684c
commit dcb847578d

10
main.d
View file

@ -222,9 +222,13 @@ int main(string[] args)
~ "' is not convertible to an integer value; must be a non-decimal number");
} catch (IniException e) {} // just do nothing; use the default setting
if (optNoFootnotes) esv.opts.boolOpts["include_footnotes"] = false;
if (optNoHeadings) esv.opts.boolOpts["include_headings"] = false;
if (optNoVerseNumbers) esv.opts.boolOpts["include_verse_numbers"] = false;
if (optFootnotes) esv.opts.boolOpts["include_footnotes"] = true;
if (optHeadings) esv.opts.boolOpts["include_headings"] = true;
if (optVerseNumbers) esv.opts.boolOpts["include_verse_numbers"] = true;
if (optPassageReferences) esv.opts.boolOpts["include_passage_references"] = true;
if (optNoFootnotes) esv.opts.boolOpts["include_footnotes"] = false;
if (optNoHeadings) esv.opts.boolOpts["include_headings"] = false;
if (optNoVerseNumbers) esv.opts.boolOpts["include_verse_numbers"] = false;
if (optNoPassageReferences) esv.opts.boolOpts["include_passage_references"] = false;
if (optLineLength != 0) esv.opts.intOpts ["line_length"] = optLineLength;