tools: iio: iio_generic_buffer: fix argument '?' option
authorMugunthan V N <mugunthanvnm@ti.com>
Wed, 21 Sep 2016 16:57:58 +0000 (22:27 +0530)
committerJonathan Cameron <jic23@kernel.org>
Thu, 22 Sep 2016 17:46:39 +0000 (18:46 +0100)
commit44c5ba96ec1083b7694a88fd99c3012213314b82
tree5268af10971c8f3e868152b99c31b2967d5bfaff
parent59dc1c8619e9f89987f36f03c5047fc2af642215
tools: iio: iio_generic_buffer: fix argument '?' option

When help ('?') option is passed to the command, the help text
printed but not from '?' switch case of getopt_long() but as a
invalid argument as below. Fix this by adding '?' to opt_String
of getopt_long().

root@am437x-evm:~# ./iio_generic_buffer -?
./iio_generic_buffer: invalid option -- '?'
Usage: generic_buffer [options]...
Capture, convert and output data from IIO device buffer
  -a         Auto-activate all available channels
...

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_generic_buffer.c