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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63473

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)