| 621 | } |
| 622 | |
| 623 | void |
| 624 | usage (int status) |
| 625 | { |
| 626 | if (status != EXIT_SUCCESS) |
| 627 | emit_try_help (); |
| 628 | else |
| 629 | { |
| 630 | printf (_("Usage: %s [OPTION]... [ FILE | ARG1 ARG2 ]\n"), program_name); |
| 631 | fputs (_("\ |
| 632 | Print information about users who are currently logged in.\n\ |
| 633 | "), stdout); |
| 634 | fputs (_("\ |
| 635 | \n\ |
| 636 | "), stdout); |
| 637 | oputs (_("\ |
| 638 | -a, --all same as -b -d --login -p -r -t -T -u\n\ |
| 639 | ")); |
| 640 | oputs (_("\ |
| 641 | -b, --boot time of last system boot\n\ |
| 642 | ")); |
| 643 | oputs (_("\ |
| 644 | -d, --dead print dead processes\n\ |
| 645 | ")); |
| 646 | oputs (_("\ |
| 647 | -H, --heading print line of column headings\n\ |
| 648 | ")); |
| 649 | oputs (_("\ |
| 650 | -l, --login print system login processes\n\ |
| 651 | ")); |
| 652 | oputs (_("\ |
| 653 | --lookup attempt to canonicalize hostnames via DNS\n\ |
| 654 | ")); |
| 655 | oputs (_("\ |
| 656 | -m only hostname and user associated with standard input\n\ |
| 657 | ")); |
| 658 | oputs (_("\ |
| 659 | -p, --process print active processes spawned by init\n\ |
| 660 | ")); |
| 661 | oputs (_("\ |
| 662 | -q, --count all login names and number of users logged on\n\ |
| 663 | ")); |
| 664 | oputs (_("\ |
| 665 | -r, --runlevel print current runlevel\n\ |
| 666 | ")); |
| 667 | oputs (_("\ |
| 668 | -s, --short print only name, line, and time (default)\n\ |
| 669 | ")); |
| 670 | oputs (_("\ |
| 671 | -t, --time print last system clock change\n\ |
| 672 | ")); |
| 673 | oputs (_("\ |
| 674 | -T, -w, --mesg add user's message status as +, - or ?\n\ |
| 675 | ")); |
| 676 | oputs (_("\ |
| 677 | -u, --users list users logged in, including idle time\n\ |
| 678 | ")); |
| 679 | oputs (_("\ |
| 680 | --message same as -T\n\ |
no test coverage detected