]> O.S.I.I.S - jp/vkvg.git/commit
getopt instead of manual parsing, style changes (#70)
authorMarco Rubin <20150305+Rubo3@users.noreply.github.com>
Tue, 25 Jan 2022 18:41:10 +0000 (18:41 +0000)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 18:41:10 +0000 (19:41 +0100)
commit5063f7049602437aa92abc773ac778b16a8d4207
tree64950fc2c7362a6e45c463fb7ad633cfd87a71a1
parentf0fea45572c1bfbf52d8970fb4d9361c75f2336f
getopt instead of manual parsing, style changes (#70)

* getopt instead of manual parsing, style changes

Something maybe unusual but I think it's better to use existing tools even here, instead of manually parsing the arguments, and I think it's more pleasing to the eye. Also, `getopt` checks for missing arguments for options which need one.

* Add stdio.h for fprintf

* Restore "vsync" option instead of "v"

That was a test, now it prints the correct (already) supported option.
tests/common/test.c