From 1bc2a436583b0e898decf13e695a1908a894a38c Mon Sep 17 00:00:00 2001 From: untir_l <87096069+untir-l@users.noreply.github.com> Date: Fri, 18 Feb 2022 18:31:12 +0530 Subject: 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). --- .gitmodules | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.gitmodules') diff --git a/.gitmodules b/.gitmodules index 0aa3466..4bb7845 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "getopt"] - path = getopt - url = https://github.com/skeeto/getopt.git +[submodule "optparse"] + path = optparse + url = https://github.com/skeeto/optparse -- cgit v1.2.3-57-g22cb