comparison lwar/main.c @ 449:96a05e89ab03

Fix command line bug in lwar lwar wasn't properly handling lw_cmdline_key_end so when bugs with bailout handling in lw_cmdline were fixed, lwar broke. This should fix it.
author William Astle <lost@l-w.ca>
date Sat, 02 Dec 2017 22:28:31 -0700
parents b138b4005125
children a6c9129e5948
comparison
equal deleted inserted replaced
448:3cd8aa013b88 449:96a05e89ab03
94 } 94 }
95 else 95 else
96 archive_file = arg; 96 archive_file = arg;
97 break; 97 break;
98 98
99 case lw_cmdline_key_end:
100 break;
101
99 default: 102 default:
100 return lw_cmdline_err_unknown; 103 return lw_cmdline_err_unknown;
101 } 104 }
102 return 0; 105 return 0;
103 } 106 }
141 // main function; parse command line, set up assembler state, and run the 144 // main function; parse command line, set up assembler state, and run the
142 // assembler on the first file 145 // assembler on the first file
143 int main(int argc, char **argv) 146 int main(int argc, char **argv)
144 { 147 {
145 program_name = argv[0]; 148 program_name = argv[0];
149
146 if (lw_cmdline_parse(&argparser, argc, argv, 0, 0, NULL) != 0) 150 if (lw_cmdline_parse(&argparser, argc, argv, 0, 0, NULL) != 0)
147 { 151 {
148 exit(1); 152 exit(1);
149 } 153 }
150 if (archive_file == NULL) 154 if (archive_file == NULL)