From 8faa1fff7a0b5f2b840abed5e21b3d867c54d026 Mon Sep 17 00:00:00 2001 From: Troy Will Date: Sun, 12 Apr 2009 23:04:33 -0700 Subject: [PATCH] made numeric argument to --verbose optional --- stow.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stow.in b/stow.in index c786115..e6fd1cd 100755 --- a/stow.in +++ b/stow.in @@ -176,7 +176,7 @@ sub process_options { Getopt::Long::config('no_ignore_case', 'bundling', 'permute'); GetOptions( 'v' => sub { $Option{'verbose'}++ }, - 'verbose=s' => sub { $Option{'verbose'} = $_[1] }, + 'verbose:i' => sub { $Option{'verbose'}+= $_[1] || 1 }, 'h|help' => sub { $Option{'help'} = '1' }, 'n|no|simulate' => sub { $Option{'simulate'} = '1' }, 'c|conflicts' => sub { $Option{'conflicts'} = '1' },