Allow and require passing files on command line of pgperltidy
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 21 Jun 2023 14:14:47 +0000 (16:14 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 21 Jun 2023 14:20:26 +0000 (16:20 +0200)
commit3d9fd1a8743abfe460137f45e8523e710c7cc589
tree952e3b63f3e2672c8e7a44d36554dfcab203cc09
parent8cca660b0bfb495306f9abd94fb4bcde783ee8ad
Allow and require passing files on command line of pgperltidy

pgperltidy as well as pgperlcritic and pgperlsyncheck now allow
passing files and directories on the command line, like pgindent does.
(Previously, they would always operate on the whole tree.)

Also, for consistency with pgindent's new behavior (as of b16259b3c1),
passing an argument is now required.  To get the previous default
behavior, use "pgperltidy ." for example.

Discussion: https://www.postgresql.org/message-id/flat/45aacd8a-5265-d9da-8df2-b8e2c0cf6a07%40eisentraut.org
src/tools/perlcheck/find_perl_files
src/tools/perlcheck/pgperlcritic
src/tools/perlcheck/pgperlsyncheck
src/tools/pgindent/README
src/tools/pgindent/pgperltidy