diff options
author | Andy Shevchenko <andy@smile.org.ua> | 2013-05-05 08:02:42 +0000 |
---|---|---|
committer | Andy Shevchenko <andy@smile.org.ua> | 2013-05-05 08:02:42 +0000 |
commit | 215210218e7057a379efb630d6c0d7641a69f8eb (patch) | |
tree | 5f431f1634d6f2abd813983af07f0890391f9547 | |
parent | 7fb94f7d2ebf4ff8590cc65c861e44378f200854 (diff) | |
download | renrot-215210218e7057a379efb630d6c0d7641a69f8eb.tar.gz renrot-215210218e7057a379efb630d6c0d7641a69f8eb.tar.bz2 |
doc: rename local variable in usage()
It allows to avoid conflict with global variable with the same name.
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
git-svn-id: file:///svnroot/renrot/trunk@621 fe2816f4-e837-0410-b10a-f608c9d244a1
-rwxr-xr-x | renrot | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1547,11 +1547,11 @@ sub rotateThumbnail { | |||
1547 | # | 1547 | # |
1548 | sub usage { | 1548 | sub usage { |
1549 | my $exitcode = shift; | 1549 | my $exitcode = shift; |
1550 | my $verbose = shift; | 1550 | my $v = shift; |
1551 | 1551 | ||
1552 | if ($verbose == 0) { | 1552 | if ($v == 0) { |
1553 | infomsg ("RenRot version $VERSION (r$REVISION)\n"); | 1553 | infomsg ("RenRot version $VERSION (r$REVISION)\n"); |
1554 | } elsif ($verbose == 1) { | 1554 | } elsif ($v == 1) { |
1555 | infomsg ( | 1555 | infomsg ( |
1556 | "Usage: renrot <--extension EXTENSION> [--quiet] [--no-rotate] [--no-rename] | 1556 | "Usage: renrot <--extension EXTENSION> [--quiet] [--no-rotate] [--no-rename] |
1557 | [--name-template TPL] [--comment-file FILE] [--work-directory DIR] | 1557 | [--name-template TPL] [--comment-file FILE] [--work-directory DIR] |
@@ -1586,7 +1586,7 @@ or '--no-mtime' disables setting it. | |||
1586 | Consult the documentation for a full list of options. | 1586 | Consult the documentation for a full list of options. |
1587 | 1587 | ||
1588 | "); | 1588 | "); |
1589 | } elsif ($verbose == 2) { | 1589 | } elsif ($v == 2) { |
1590 | pod2usage(-verbose => 2); | 1590 | pod2usage(-verbose => 2); |
1591 | } | 1591 | } |
1592 | exit $exitcode; | 1592 | exit $exitcode; |