Subject: | custom Getopt::Long configuration breaks parsing of perltidyrc |
Date: | Sun, 30 Oct 2016 09:49:58 +0100 |
To: | bug-Perl-Tidy [...] rt.cpan.org |
From: | Simon Reinhardt <simon.reinhardt [...] stud.uni-regensburg.de> |
Hi,
Using Getopt::Long with config 'bundling' seems to be incompatible with
Perl::Tidy:
use Getopt::Long qw/:config bundling/;
use Perl::Tidy;
perltidy(
perltidyrc => 'perltidyrc',
);
If 'perltiyrc' contains a line like '-npro', this script dies with this
message:
Unknown option: n
Unknown option: p
Unknown option: r
Unknown option: o
Error in this config file: perltidyrc
Use -npro to ignore this file, -h for help'
Message body not shown because it is not plain text.