wmix: changed command line parsing code to report properly incorrect options
commit5b46b380e6210f1ffcd54f5a888b5eab4d9e005f
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 7 Jun 2014 19:21:49 +0000 (7 21:21 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 7 Jun 2014 20:27:27 +0000 (7 21:27 +0100)
treebcaad8f962007f8c6afacc8fbb0be09a0d2209ee
parent676fc13cb24a6a983828595853e6de893c5f04f1
wmix: changed command line parsing code to report properly incorrect options

The original code did not abort when an invalid option was provided
or if there was non-options arguments on the command line.
The new code will report all problems found and stop to have the user
fix his command. It also remove some unnecessary pointer checks.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
wmix/config.c