lslogins: tell why command failed
Printing usage() without hint what is wrong does not help an user. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
f838efeb67
commit
1025d21efe
|
@ -1437,7 +1437,7 @@ int main(int argc, char *argv[])
|
||||||
logins = argv[optind];
|
logins = argv[optind];
|
||||||
outmode = OUT_PRETTY;
|
outmode = OUT_PRETTY;
|
||||||
} else if (argc != optind)
|
} else if (argc != optind)
|
||||||
usage(stderr);
|
errx(EXIT_FAILURE, _("Only one user may be specified. Use -l for multiple users."));
|
||||||
|
|
||||||
scols_init_debug(0);
|
scols_init_debug(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue