| 363 | terminate the program without starting play, like 'nethack --version' |
| 364 | or 'nethack -s Zelda'; do some cleanup before that termination */ |
| 365 | ATTRNORETURN staticfn void |
| 366 | opt_terminate(void) |
| 367 | { |
| 368 | program_state.early_options = 0; |
| 369 | config_error_done(); /* free memory allocated by config_error_init() */ |
| 370 | |
| 371 | nh_terminate(EXIT_SUCCESS); |
| 372 | /*NOTREACHED*/ |
| 373 | } |
| 374 | |
| 375 | ATTRNORETURN staticfn void |
| 376 | opt_usage(const char *hackdir) |
no test coverage detected