zeniba-nsxiv/etc
NRK 216f312578 add support for long-opts (#332)
Uses [optparse] to add support for long-opts. optparse is posix
compliant with getopt(3) and thus would be backwards compatible.
It does not have any dependency (not even the c standard library!) and
is C89 compatible and thus fits our current code-style.

[optparse]: https://github.com/skeeto/optparse

Note that we're using a couple `pragma`-s to silence some harmless
warnings. This should be portable because these pragma-s don't change the
behavior of the program. Furthermore, C standard mandates that unknown
pragma's should be ignored by the compiler and thus would not result in
build failure on compilers which do not recognize them.

Closes: https://codeberg.org/nsxiv/nsxiv/issues/328
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/332
Reviewed-by: eylles <eylles@noreply.codeberg.org>
2022-08-16 10:43:50 +02:00
..
examples Move uncritical files into etc/ (#350) 2022-08-09 16:21:52 +02:00
woodpecker Move uncritical files into etc/ (#350) 2022-08-09 16:21:52 +02:00
CHANGELOG.md Move uncritical files into etc/ (#350) 2022-08-09 16:21:52 +02:00
CONTRIBUTING.md Move uncritical files into etc/ (#350) 2022-08-09 16:21:52 +02:00
nsxiv.1 add support for long-opts (#332) 2022-08-16 10:43:50 +02:00
nsxiv.desktop Move uncritical files into etc/ (#350) 2022-08-09 16:21:52 +02:00