@@ -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 * const 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