diff options
author | untir_l <87096069+untir-l@users.noreply.github.com> | 2022-02-18 13:01:12 +0000 |
---|---|---|
committer | untir-l <87096069+untir-l@users.noreply.github.com> | 2022-02-25 09:56:49 +0000 |
commit | 1bc2a436583b0e898decf13e695a1908a894a38c (patch) | |
tree | c2a984a4b7bfef841e44792cbabae360390485aa /cli/hitomezashi_cli.c | |
parent | cde12d91839f2db46711edb5946b03ea2704bcb6 (diff) | |
download | hitomezashi-1bc2a436583b0e898decf13e695a1908a894a38c.tar hitomezashi-1bc2a436583b0e898decf13e695a1908a894a38c.tar.gz hitomezashi-1bc2a436583b0e898decf13e695a1908a894a38c.zip |
Change argument parsing to use optparse, fix bugs in it, misc. changes
- Change argument parsing library from xgetopt to optparse (pretty close to a
drop-in replacement).
- Fix bugs in the argument parsing. There were several.
- Remove an extraneous printf added for debugging purposes.
- Add more bounds checks for numeric arguments to avoid passing garbage to the
library code and hitting assertions when the input is bad.
- Change the clang-format invocation in the Makefile to have --verbose.
- Change -Wpedantic to --pedantic-errors in CFLAGS, add -Wno-unused-function
so it doesn't complain about the ones from optparse (such are the perils of
single-header libraries).
Diffstat (limited to 'cli/hitomezashi_cli.c')
0 files changed, 0 insertions, 0 deletions