diff --git a/host/hackrf-tools/src/hackrf_cpldjtag.c b/host/hackrf-tools/src/hackrf_cpldjtag.c index 3c9a89e1..fc82deb4 100644 --- a/host/hackrf-tools/src/hackrf_cpldjtag.c +++ b/host/hackrf-tools/src/hackrf_cpldjtag.c @@ -45,6 +45,7 @@ uint8_t data[MAX_XSVF_LENGTH]; static struct option long_options[] = { { "xsvf", required_argument, 0, 'x' }, + { "device", required_argument, 0, 'd' }, { "help", no_argument, 0, 'h' }, { 0, 0, 0, 0 }, }; @@ -82,7 +83,7 @@ static void usage() printf("Usage:\n"); printf("\t-h, --help: this help\n"); printf("\t-x, --xsvf : XSVF file to be written to CPLD.\n"); - printf("\t-d : Serial number of device, if multiple devices\n"); + printf("\t-d, --device : Serial number of device, if multiple devices\n"); } int main(int argc, char** argv) diff --git a/host/hackrf-tools/src/hackrf_operacake.c b/host/hackrf-tools/src/hackrf_operacake.c index 6f8e2e1b..def90690 100644 --- a/host/hackrf-tools/src/hackrf_operacake.c +++ b/host/hackrf-tools/src/hackrf_operacake.c @@ -39,13 +39,14 @@ static void usage() { printf("\t-o, --address : specify a particular operacake by address [default: 0x00]\n"); printf("\t-a : set port A connection\n"); printf("\t-b : set port B connection\n"); - printf("\t-v: verbose, list available operacake boards\n"); + printf("\t-v, --verbose: verbose, list available operacake boards\n"); } static struct option long_options[] = { { "device", no_argument, 0, 'd' }, { "serial", no_argument, 0, 's' }, { "address", no_argument, 0, 'o' }, + { "verbose", no_argument, 0, 'v' }, { "help", no_argument, 0, 'h' }, { 0, 0, 0, 0 }, }; diff --git a/host/hackrf-tools/src/hackrf_si5351c.c b/host/hackrf-tools/src/hackrf_si5351c.c index 69dedc86..536795be 100644 --- a/host/hackrf-tools/src/hackrf_si5351c.c +++ b/host/hackrf-tools/src/hackrf_si5351c.c @@ -38,7 +38,7 @@ static void usage() { printf("\t-n, --register : set register number for subsequent read/write operations\n"); printf("\t-r, --read: read register specified by last -n argument, or all registers\n"); printf("\t-w, --write : write register specified by last -n argument with value \n"); - printf("\t-s, --device : specify a particular device by serial number\n"); + printf("\t-s, --serial : specify a particular device by serial number\n"); printf("\t-d, --device : specify a particular device by number\n"); printf("\nExamples:\n"); printf("\t -n 12 -r # reads from register 12\n"); diff --git a/host/hackrf-tools/src/hackrf_spiflash.c b/host/hackrf-tools/src/hackrf_spiflash.c index 5acb6646..d230a6b6 100644 --- a/host/hackrf-tools/src/hackrf_spiflash.c +++ b/host/hackrf-tools/src/hackrf_spiflash.c @@ -51,6 +51,8 @@ static struct option long_options[] = { { "length", required_argument, 0, 'l' }, { "read", required_argument, 0, 'r' }, { "write", required_argument, 0, 'w' }, + { "device", required_argument, 0, 'd' }, + { "reset", no_argument, 0, 'R' }, { "verbose", no_argument, 0, 'v' }, { "help", no_argument, 0, 'h' }, { 0, 0, 0, 0 }, @@ -90,11 +92,11 @@ static void usage() printf("\t-h, --help: this help\n"); printf("\t-a, --address : starting address (default: 0)\n"); printf("\t-l, --length : number of bytes to read (default: %d)\n", MAX_LENGTH); - printf("\t-r : Read data into file.\n"); - printf("\t-w : Write data from file.\n"); - printf("\t-d : Serial number of device, if multiple devices\n"); - printf("\t-R: Reset HackRF after other operations.\n"); - printf("\t-v: Verbose output.\n"); + printf("\t-r, --read : Read data into file.\n"); + printf("\t-w, --write : Write data from file.\n"); + printf("\t-d, --device : Serial number of device, if multiple devices\n"); + printf("\t-R, --reset: Reset HackRF after other operations.\n"); + printf("\t-v, --verbose: Verbose output.\n"); } int main(int argc, char** argv)