Make "ifconfig" with no arguments equivalent to "ifconfig -a".

This commit is contained in:
Archie Cobbs 2000-07-18 22:07:31 +00:00
parent 2ba03123c5
commit d80e7aa796

View File

@ -390,6 +390,10 @@ main(argc, argv)
if (uponly && downonly)
usage();
/* no arguments is equivalent to '-a' */
if (!namesonly && argc < 1)
all = 1;
/* -a and -l allow an address family arg to limit the output */
if (all || namesonly) {
if (argc > 1)