/* vi: set sw=4 ts=4: */
-/*----------------------------------------------------------------------
+/*
* Mini who is used to display user name, login time,
* idle time and host name.
*
* Copyright (c) 2002 AYR Networks, Inc.
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
- *
- *----------------------------------------------------------------------
*/
//config:config WHO
//config: bool "who (3.7 kb)"
unsigned opt;
const char *fmt = "%s";
- opt_complementary = "=0";
- opt = getopt32(argv, do_who ? "aH" : "");
+ opt = getopt32(argv, do_who ? "^" "aH" "\0" "=0": "^" "" "\0" "=0");
if ((opt & 2) || do_w) /* -H or we are w */
puts("USER\t\tTTY\t\tIDLE\tTIME\t\t HOST");