From 215210218e7057a379efb630d6c0d7641a69f8eb Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Sun, 5 May 2013 08:02:42 +0000 Subject: doc: rename local variable in usage() It allows to avoid conflict with global variable with the same name. Signed-off-by: Andy Shevchenko git-svn-id: file:///svnroot/renrot/trunk@621 fe2816f4-e837-0410-b10a-f608c9d244a1 --- renrot | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/renrot b/renrot index 5089f75..2e51146 100755 --- a/renrot +++ b/renrot @@ -1547,11 +1547,11 @@ sub rotateThumbnail { # sub usage { my $exitcode = shift; - my $verbose = shift; + my $v = shift; - if ($verbose == 0) { + if ($v == 0) { infomsg ("RenRot version $VERSION (r$REVISION)\n"); - } elsif ($verbose == 1) { + } elsif ($v == 1) { infomsg ( "Usage: renrot <--extension EXTENSION> [--quiet] [--no-rotate] [--no-rename] [--name-template TPL] [--comment-file FILE] [--work-directory DIR] @@ -1586,7 +1586,7 @@ or '--no-mtime' disables setting it. Consult the documentation for a full list of options. "); - } elsif ($verbose == 2) { + } elsif ($v == 2) { pod2usage(-verbose => 2); } exit $exitcode; -- cgit v1.2.1