| 630 | } |
| 631 | |
| 632 | static void |
| 633 | nhusage(void) |
| 634 | { |
| 635 | char buf1[BUFSZ], buf2[BUFSZ], *bufptr; |
| 636 | |
| 637 | buf1[0] = '\0'; |
| 638 | bufptr = buf1; |
| 639 | |
| 640 | #define ADD_USAGE(s) \ |
| 641 | if ((strlen(buf1) + strlen(s)) < (BUFSZ - 1)) \ |
| 642 | Strcat(bufptr, s); |
| 643 | |
| 644 | /* -role still works for those cases which aren't already taken, but |
| 645 | * is deprecated and will not be listed here. |
| 646 | */ |
| 647 | (void) Sprintf(buf2, "\nUsage:\n%s [-d dir] -s [-r race] [-p profession] " |
| 648 | "[maxrank] [name]...\n or", |
| 649 | gh.hname); |
| 650 | ADD_USAGE(buf2); |
| 651 | |
| 652 | (void) Sprintf( |
| 653 | buf2, "\n%s [-d dir] [-u name] [-r race] [-p profession] [-[DX]]", |
| 654 | gh.hname); |
| 655 | ADD_USAGE(buf2); |
| 656 | #ifdef NEWS |
| 657 | ADD_USAGE(" [-n]"); |
| 658 | #endif |
| 659 | #ifndef AMIGA |
| 660 | ADD_USAGE(" [-I] [-i] [-d]"); |
| 661 | #endif |
| 662 | #ifdef AMIGA |
| 663 | ADD_USAGE(" [-[lL]]"); |
| 664 | #endif |
| 665 | if (!iflags.window_inited) |
| 666 | raw_printf("%s\n", buf1); |
| 667 | else |
| 668 | (void) printf("%s\n", buf1); |
| 669 | #undef ADD_USAGE |
| 670 | } |
| 671 | |
| 672 | #ifdef CHDIR |
| 673 | void |
no test coverage detected