gpioset: fix checking mutually exclusive options
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 9 Oct 2017 21:05:30 +0000 (23:05 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 9 Oct 2017 21:05:30 +0000 (23:05 +0200)
commit6521c1234097277c3d8f2c14fc6031e17dfcfeb0
treed8e728cea98c6441b80cfe19ac987ec0bba8366a
parent34a2f58aeceaa108db02e119651641def305c651
gpioset: fix checking mutually exclusive options

Certain options are mutually exclusive but they're checked in a way
that doesn't always guarantee gpioset to bail out. Fix it by checking
the options that don't work together after all command-line parsing is
done.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/tools/gpioset.c
tests/tests-gpioset.c