From ae573770aa9be409dfb7c252701002521354bde2 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 18 Mar 2003 19:46:55 +0000 Subject: [PATCH] Add a -v(erbose) flag to undo our -q(uiet) default. --- contrib/isc-dhcp/client/dhclient.8 | 7 +++++++ contrib/isc-dhcp/client/dhclient.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/contrib/isc-dhcp/client/dhclient.8 b/contrib/isc-dhcp/client/dhclient.8 index 52758a2210dd..0a99042f29f4 100644 --- a/contrib/isc-dhcp/client/dhclient.8 +++ b/contrib/isc-dhcp/client/dhclient.8 @@ -41,6 +41,9 @@ dhclient - Dynamic Host Configuration Protocol Client .B -q ] [ +.B -v +] +[ .B -1 ] [ @@ -204,6 +207,10 @@ facility. The .B -q flag prevents any messages other than errors from being printed to the standard error descriptor. +.B -v +flag turns on all messages. +Opposite of +.B -q . .PP The client normally doesn't release the current lease as it is not required by the DHCP protocol. Some cable ISPs require their clients diff --git a/contrib/isc-dhcp/client/dhclient.c b/contrib/isc-dhcp/client/dhclient.c index 5672723f2f70..96c836f1405a 100644 --- a/contrib/isc-dhcp/client/dhclient.c +++ b/contrib/isc-dhcp/client/dhclient.c @@ -185,6 +185,9 @@ int main (argc, argv, envp) } else if (!strcmp (argv [i], "-q")) { quiet = 1; quiet_interface_discovery = 1; + } else if (!strcmp (argv [i], "-v")) { + quiet = 0; + quiet_interface_discovery = 0; } else if (!strcmp (argv [i], "-s")) { if (++i == argc) usage ();