hackrf_operacake: fix long options with arguments
This commit is contained in:
@ -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' },
|
||||||
|
Reference in New Issue
Block a user