hackrf_operacake: fix long options with arguments

This commit is contained in:
Michael Ossmann
2021-12-11 17:37:36 -07:00
parent d46c8e14d5
commit 3b8c317800

View File

@ -57,9 +57,9 @@ static void usage() {
} }
static struct option long_options[] = { static struct option long_options[] = {
{ "device", no_argument, 0, 'd' }, { "device", required_argument, 0, 'd' },
{ "address", no_argument, 0, 'o' }, { "address", required_argument, 0, 'o' },
{ "mode", no_argument, 0, 'm' }, { "mode", required_argument, 0, 'm' },
{ "list", no_argument, 0, 'l' }, { "list", no_argument, 0, 'l' },
{ "gpio_test", no_argument, 0, 'g' }, { "gpio_test", no_argument, 0, 'g' },
{ "help", no_argument, 0, 'h' }, { "help", no_argument, 0, 'h' },