]> git.draconx.ca Git - gob-dx.git/commit
Convert command-line options processing to getopt_long.
authorNick Bowler <nbowler@draconx.ca>
Wed, 3 Mar 2021 04:36:07 +0000 (23:36 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 3 Mar 2021 06:28:40 +0000 (01:28 -0500)
commitf0cd5b9c13a412c2248b74da2cef04ec9bcffc10
treeed1f68629e28bf1ec025ad5949fb9c1492aee5a3
parent1aa75d411dd68f6e015a747a39b5179cb5573bb8
Convert command-line options processing to getopt_long.

Instead of a hand-written command-line options parser, let's use
getopt_long which is hopefully a bit more straightforward to modify.

Care has been taken to preserve the current option semantics as
closely as possible, including the weird --m4 option behaviour.

The Gnulib getopt-gnu module is used for portability.
14 files changed:
.gitignore
.gitmodules
Makefile.am
bootstrap
build-aux/.gitignore [new file with mode: 0644]
build-aux/gitlog-to-changelog [deleted file]
common
configure.ac
gnulib [new submodule]
m4/.gitignore
m4/gnulib-cache.m4 [new file with mode: 0644]
src/main.c
src/main.h
tests/options.at