From e427ec79eaba80225c1fdca2021ebd29c4c779ed Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 19 Aug 2002 08:30:41 +0000 Subject: [PATCH] Add a --verbose option. --- verify-status.pl | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/verify-status.pl b/verify-status.pl index 0b98045..e3faa0c 100755 --- a/verify-status.pl +++ b/verify-status.pl @@ -2,6 +2,17 @@ use diagnostics; use strict; +my $verbose = 0; + +while (@ARGV) { + my $arg = shift; + if ($arg eq '-v' or $arg eq '--verbose') { + $verbose = 1; + } else { + warn "Unrecognized option: $arg\n"; + } +} + local (*AVAILABLE, *STATUS); open AVAILABLE, '