" -ff: Load next .hex file as flash\n"
" -ee: Load next .hex file as eeprom\n"
" -v: Raise verbosity level (can be passed more than once)\n"
+ " --list-cores: List all supported AVR cores\n");
+ exit(1);
+}
+
+void list_cores() {
+ printf(
" Supported AVR cores:\n");
for (int i = 0; avr_kind[i]; i++) {
printf(" ");
display_usage(basename(argv[0]));
for (int pi = 1; pi < argc; pi++) {
- if (!strcmp(argv[pi], "-h") || !strcmp(argv[pi], "-help")) {
+ if (!strcmp(argv[pi], "--list-cores")) {
+ list_cores();
+ } else if (!strcmp(argv[pi], "-h") || !strcmp(argv[pi], "-help")) {
display_usage(basename(argv[0]));
} else if (!strcmp(argv[pi], "-m") || !strcmp(argv[pi], "-mcu")) {
if (pi < argc-1)