@@ -238,14 +238,17 @@ static void usage(void) {
238238
239239 msg_error ("Usage: %s [options]\n"
240240 "Options:\n"
241- " -p <partno> Specify AVR device; -p ? lists all known parts\n"
242- " -p <wildcard>/<flags> Run developer options for matched AVR devices,\n"
241+ " -p, --part <partno> Specify AVR device; -p ? lists all known parts\n"
242+ " -p, --part <wildcard>/<flags>\n"
243+ " Run developer options for matched AVR devices,\n"
243244 " e.g., -p ATmega328P/s or /S for part definition\n"
244245 " -b, --baud <baudrate> Override RS-232 baud rate\n"
245246 " -B, --bitclock <bitclock> Specify bit clock period (us)\n"
246- " -C <config-file> Specify location of configuration file\n"
247- " -C +<config-file> Specify additional config file, can be repeated\n"
248- " -N Do not load %s%s\n"
247+ " -C, --config <config-file>\n"
248+ " Specify location of configuration file\n"
249+ " -C, --config +<config-file>\n"
250+ " Specify additional config file, can be repeated\n"
251+ " -N, --noconfig Do not load %s%s\n"
249252 " -c, --programmer <programmer>\n"
250253 " Specify programmer; -c ? and -c ?type list all\n"
251254 " -c, --programmer <wildcard>/<flags>\n"
@@ -259,8 +262,8 @@ static void usage(void) {
259262 " 400 ms for each -r; needed for some USB boards\n"
260263 " -F Override invalid signature or initial checks\n"
261264 " -e, --erase Perform a chip erase at the beginning\n"
262- " -O Perform RC oscillator calibration (see AVR053)\n"
263- " -t, --terminal, --tty Run an interactive terminal when it is its turn\n"
265+ " -O, --osccal Perform RC oscillator calibration (see AVR053)\n"
266+ " -t, --terminal, Run an interactive terminal when it is its turn\n"
264267 " -T <terminal cmd line> Run terminal line when it is its turn\n"
265268 " -U, --memory <memstr>:r|w|v:<filename>[:format]\n"
266269 " Carry out memory operation when it is its turn\n"
@@ -270,7 +273,7 @@ static void usage(void) {
270273 " -E <exitsp>[,<exitsp>] List programmer exit specifications\n"
271274 " -x <extended_param> Pass <extended_param> to programmer, see -x help\n"
272275 " -v, --verbose Verbose output; -v -v for more\n"
273- " -q Quell progress output; -q -q for less\n"
276+ " -q, --quiet Quell progress output; -q -q for less\n"
274277 " -l, --logfile logfile Use logfile rather than stderr for diagnostics\n"
275278 " -?, --help Display this usage\n"
276279 "\navrdude version %s, https://github.com/avrdudes/avrdude\n" ,
@@ -828,13 +831,12 @@ int main(int argc, char *argv[]) {
828831 {"logfile" , required_argument , NULL , 'l' },
829832 {"test" , no_argument , NULL , 'n' },
830833 {"noconfig" , no_argument , NULL , 'N' },
834+ {"osccal" , no_argument , NULL , 'O' },
831835 {"part" , required_argument , NULL , 'p' },
832- {"chip" , required_argument , NULL , 'p' },
833836 {"port" , required_argument , NULL , 'P' },
834837 {"quiet" , no_argument , NULL , 'q' },
835838 {"reconnect" , no_argument , NULL , 'r' },
836839 {"terminal" , no_argument , NULL , 't' },
837- {"tty" , no_argument , NULL , 't' },
838840 {"memory" , required_argument , NULL , 'U' },
839841 {"verbose" , no_argument , NULL , 'v' },
840842 {"noverify" , no_argument , NULL , 'V' },
0 commit comments