[libcode-tidyall-perl] 66/374: Specifying options in configuration
Jonas Smedegaard
js at alioth.debian.org
Sun Sep 29 22:25:50 UTC 2013
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libcode-tidyall-perl.
commit 8491fa04c685ef48e7b3e3f440b08ecf7b79449c
Author: Jonathan Swartz <swartz at pobox.com>
Date: Tue Jul 3 05:19:09 2012 -0700
Specifying options in configuration
---
bin/tidyall | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/bin/tidyall b/bin/tidyall
index b62761d..368c291 100755
--- a/bin/tidyall
+++ b/bin/tidyall
@@ -194,9 +194,9 @@ Apply C<PodTidy> with default settings to all .pm and .pod files underneath
=item [class]
-The header of each configuration section refers to a tidyall I<plugin>. The
-name is automatically prefixed with C<Code::TidyAll::Plugin::> unless it begins
-with a '+', e.g.
+The header of each section refers to a tidyall I<plugin>. The name is
+automatically prefixed with C<Code::TidyAll::Plugin::> unless it begins with a
+'+', e.g.
# Uses plugin Code::TidyAll::Plugin::PerlTidy
[PerlTidy]
@@ -288,7 +288,7 @@ file. This is used by L<Test::Code::TidyAll|Test::Code::TidyAll>, for example.
=item --conf-file
-Specify conf file explicitly. Usually this is inferred from the specified
+Specify config file explicitly. Usually this is inferred from the specified
file(s) or from the current working directory.
=item --data-dir
@@ -325,6 +325,22 @@ Subclass to use instead of C<Code::TidyAll>.
=back
+=head2 Specifying options in configuration
+
+Almost any command-line option can be specified at the top of the config file,
+above the plugin sections. Replace dashes with underscores. e.g.
+
+ backup_ttl = 4h
+ tidyall_class = My::Code::TidyAll
+
+ [PerlTidy]
+ select = **/*.{pl,pm,t}
+ argv = -noll -it=2
+
+ ...
+
+If an option is passed in both places, the command-line takes precedence.
+
=head1 LAST-PROCESSED CACHE
C<tidyall> keeps track of each file's signature after it was last processed. On
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcode-tidyall-perl.git
More information about the Pkg-perl-cvs-commits
mailing list