better help text for IP settings
This commit is contained in:
+3
-3
@@ -20,10 +20,10 @@ Usage
|
|||||||
Usage: ebuspicloader [OPTION...] PORT
|
Usage: ebuspicloader [OPTION...] PORT
|
||||||
A tool for loading firmware to the eBUS adapter PIC.
|
A tool for loading firmware to the eBUS adapter PIC.
|
||||||
|
|
||||||
-d, --dhcp set IP address to DHCP
|
-d, --dhcp set dynamic IP address via DHCP
|
||||||
-f, --flash=FILE flash the FILE to the device
|
-f, --flash=FILE flash the FILE to the device
|
||||||
-i, --ip=IP set IP address (e.g. 192.168.0.10)
|
-i, --ip=IP set fix IP address (e.g. 192.168.0.10)
|
||||||
-m, --mask=MASK set IP mask (e.g. 24)
|
-m, --mask=MASK set fix IP mask (e.g. 24)
|
||||||
-M, --macip set the MAC address suffix from the IP address
|
-M, --macip set the MAC address suffix from the IP address
|
||||||
-r, --reset reset the device at the end on success
|
-r, --reset reset the device at the end on success
|
||||||
-s, --slow use low speed for transfer
|
-s, --slow use low speed for transfer
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ static const char argpargsdoc[] = "PORT";
|
|||||||
/** the definition of the known program arguments. */
|
/** the definition of the known program arguments. */
|
||||||
static const struct argp_option argpoptions[] = {
|
static const struct argp_option argpoptions[] = {
|
||||||
{"verbose", 'v', nullptr, 0, "enable verbose output", 0 },
|
{"verbose", 'v', nullptr, 0, "enable verbose output", 0 },
|
||||||
{"dhcp", 'd', nullptr, 0, "set IP address to DHCP", 0 },
|
{"dhcp", 'd', nullptr, 0, "set dynamic IP address via DHCP", 0 },
|
||||||
{"ip", 'i', "IP", 0, "set IP address (e.g. 192.168.0.10)", 0 },
|
{"ip", 'i', "IP", 0, "set fix IP address (e.g. 192.168.0.10)", 0 },
|
||||||
{"mask", 'm', "MASK", 0, "set IP mask (e.g. 24)", 0 },
|
{"mask", 'm', "MASK", 0, "set fix IP mask (e.g. 24)", 0 },
|
||||||
{"macip", 'M', nullptr, 0, "set the MAC address suffix from the IP address", 0 },
|
{"macip", 'M', nullptr, 0, "set the MAC address suffix from the IP address", 0 },
|
||||||
{"flash", 'f', "FILE", 0, "flash the FILE to the device", 0 },
|
{"flash", 'f', "FILE", 0, "flash the FILE to the device", 0 },
|
||||||
{"reset", 'r', nullptr, 0, "reset the device at the end on success", 0 },
|
{"reset", 'r', nullptr, 0, "reset the device at the end on success", 0 },
|
||||||
|
|||||||
Reference in New Issue
Block a user