Skip to content

Commit 35cc668

Browse files
committed
Fix isp-clock-delay name
1 parent 4621342 commit 35cc668

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ static void usage(void) {
253253
" e.g., -c 'ur*'/s for programmer definition\n"
254254
" -A --keep-trailing-0xff Disable trailing-0xff removal for file/AVR read\n"
255255
" -D --noerase Disable auto-erase for flash memory; implies -A\n"
256-
" -i --isp-delay <delay> Bit state change delay [in microseconds] for\n"
256+
" -i --isp-clock-delay <delay>\n"
257+
" Bit state change delay [in microseconds] for\n"
257258
" bit-banged ISP and TPI programmers\n"
258259
" -P --port <port> Connection; -P ?s or -P ?sa lists serial ones\n"
259260
" -r --reconnect Reconnect to -P port after \"touching\" it; wait\n"
@@ -851,12 +852,11 @@ int main(int argc, char *argv[]) {
851852
{"extended", required_argument, NULL, 'x'},
852853
{NULL, 0, NULL, 0}
853854
};
854-
855+
const char shortopts[] =
856+
"aAb:B:c:C:dDeE:fFgGhHi:IjJkKl:LmMnNoOp:P:qQrRsStT:uU:vVwWx:XyYzZ0123456789";
855857
int option_idx = 0;
856-
while((ch = getopt_long(argc, argv,
857-
"aAb:B:c:C:dDeE:fFgGhHi:IjJkKl:LmMnNoOp:P:qQrRsStT:uU:vVwWx:XyYzZ0123456789",
858-
longopts, &option_idx)) != -1) {
859858

859+
while((ch = getopt_long(argc, argv, shortopts, longopts, &option_idx)) != -1) {
860860
switch(ch) {
861861
case 'b': // Override default programmer baud rate
862862
baudrate = str_int(optarg, STR_INT32, &errstr);

0 commit comments

Comments
 (0)