From a674276cc02912493dae325dfd3480ba2dcc8b12 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Fri, 2 Apr 2021 18:53:21 -0700 Subject: [PATCH] add --oneliner example to man page for git #58 --- bin/perltidy | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bin/perltidy b/bin/perltidy index fdd03926..f08820c6 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -4124,16 +4124,19 @@ where B is the abbreviation, and B, etc, are existing parameters I. The main syntax requirement is that the new abbreviation along with its opening curly brace must begin on a new line. Space before and after the curly braces is optional. -For a -specific example, the following line - airy {-bl -pt=0 -bt=0 -sbt=0} +For a specific example, the following line -could be placed in a F<.perltidyrc> file, and then invoked at will with + oneliner { -l=0 -nanl } - perltidy -airy somefile.pl +could be placed in a F<.perltidyrc> file to temporarily override the maximum +line length with a large value, and to temporarily prevent newlines from being +added. All other settings in the F<.perltidyrc> file still apply. Thus it +provides a way to format a long 'one liner' when perltidy is invoked with -(Either C<-airy> or C<--airy> may be used). + perltidy --oneliner ... + +(Either C<-oneliner> or C<--oneliner> may be used). =item Skipping leading non-perl commands with B<-x> or B<--look-for-hash-bang> -- 2.39.5