made numeric argument to --verbose optional
This commit is contained in:
parent
582335dfe3
commit
8faa1fff7a
1 changed files with 1 additions and 1 deletions
2
stow.in
2
stow.in
|
@ -176,7 +176,7 @@ sub process_options {
|
||||||
Getopt::Long::config('no_ignore_case', 'bundling', 'permute');
|
Getopt::Long::config('no_ignore_case', 'bundling', 'permute');
|
||||||
GetOptions(
|
GetOptions(
|
||||||
'v' => sub { $Option{'verbose'}++ },
|
'v' => sub { $Option{'verbose'}++ },
|
||||||
'verbose=s' => sub { $Option{'verbose'} = $_[1] },
|
'verbose:i' => sub { $Option{'verbose'}+= $_[1] || 1 },
|
||||||
'h|help' => sub { $Option{'help'} = '1' },
|
'h|help' => sub { $Option{'help'} = '1' },
|
||||||
'n|no|simulate' => sub { $Option{'simulate'} = '1' },
|
'n|no|simulate' => sub { $Option{'simulate'} = '1' },
|
||||||
'c|conflicts' => sub { $Option{'conflicts'} = '1' },
|
'c|conflicts' => sub { $Option{'conflicts'} = '1' },
|
||||||
|
|
Loading…
Reference in a new issue