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[] = {
{ "device", no_argument, 0, 'd' },
{ "address", no_argument, 0, 'o' },
{ "mode", no_argument, 0, 'm' },
{ "device", required_argument, 0, 'd' },
{ "address", required_argument, 0, 'o' },
{ "mode", required_argument, 0, 'm' },
{ "list", no_argument, 0, 'l' },
{ "gpio_test", no_argument, 0, 'g' },
{ "help", no_argument, 0, 'h' },