Changeset 1484
- Timestamp:
- 01/11/12 03:10:11 (4 months ago)
- File:
-
- 1 edited
-
trunk/cli_classic.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/cli_classic.c
r1483 r1484 178 178 int ret = 0; 179 179 180 static const char optstring[] = "r:Rw:v:nVEfc: m:l:i:p:Lzh";180 static const char optstring[] = "r:Rw:v:nVEfc:l:i:p:Lzh"; 181 181 static const struct option long_options[] = { 182 182 {"read", 1, NULL, 'r'}, … … 199 199 200 200 char *filename = NULL; 201 char *layoutfile = NULL; 201 202 char *tempstr = NULL; 202 203 char *pparam = NULL; … … 274 275 break; 275 276 case 'l': 276 tempstr = strdup(optarg); 277 if (read_romlayout(tempstr)) 278 cli_classic_abort_usage(); 277 if (layoutfile) { 278 fprintf(stderr, "Error: --layout specified " 279 "more than once. Aborting.\n"); 280 cli_classic_abort_usage(); 281 } 282 layoutfile = strdup(optarg); 279 283 break; 280 284 case 'i': … … 374 378 } 375 379 376 if (process_include_args())377 cli_classic_abort_usage();378 379 380 /* FIXME: Print the actions flashrom will take. */ 380 381 … … 390 391 } 391 392 #endif 393 394 if (layoutfile && read_romlayout(layoutfile)) 395 cli_classic_abort_usage(); 396 if (process_include_args()) 397 cli_classic_abort_usage(); 392 398 393 399 /* Does a chip with the requested name exist in the flashchips array? */
Note: See TracChangeset
for help on using the changeset viewer.
