mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Pass a hash to pod2usage. That's the recommended way.
This commit is contained in:
parent
c8c4d087bf
commit
78ea4c8425
@ -56,7 +56,7 @@ sub show_version
|
|||||||
-exitval => 0});
|
-exitval => 0});
|
||||||
}
|
}
|
||||||
|
|
||||||
GetOptions("help" => sub { pod2usage(-verbose => 1, -exitval => 0) },
|
GetOptions("help" => sub { pod2usage({-verbose => 1, -exitval => 0}) },
|
||||||
"version" => \&show_version)
|
"version" => \&show_version)
|
||||||
or exit 2;
|
or exit 2;
|
||||||
print(STDERR "$0: missing file operand\n"), exit 2 unless @ARGV;
|
print(STDERR "$0: missing file operand\n"), exit 2 unless @ARGV;
|
||||||
|
Loading…
Reference in New Issue
Block a user