Skip Menu |

This queue is for tickets about the Perl-Tidy CPAN distribution.

Report information
The Basics
Id: 128219
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: Nobody in particular
Requestors: jidanni [...] jidanni.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 20180220
Fixed in: (no value)



Subject: Add no argument example
Man page says: EXAMPLES perltidy somefile.pl This will produce a file somefile.pl.tdy containing the script reformatted using the default options, which approximate the style suggested in perlstyle(1). The source file somefile.pl is unchanged. perltidy *.pl Execute perltidy on all .pl files in the current directory with the default options. The output will be in files with an appended .tdy extension. For any file with an error, there will be a file with extension .ERR. OK, but before the second, please add: perltidy < somefile.pl This will put the output instead on stdout.
On Fri Jan 11 23:42:23 2019, jidanni@jidanni.org wrote: Show quoted text
> Man page says: > > EXAMPLES > perltidy somefile.pl > > This will produce a file somefile.pl.tdy containing the script > reformatted using the default options, which > approximate the style suggested in perlstyle(1). The source file > somefile.pl is unchanged. > > perltidy *.pl > > Execute perltidy on all .pl files in the current directory with the > default options. The output will be in files > with an appended .tdy extension. For any file with an error, there > will be a file with extension .ERR. > > OK, but before the second, please add: > > perltidy < somefile.pl > > This will put the output instead on stdout.
This is already covered in the SYNOPSIS section at the start of the man page: perltidy [ options ] file1 file2 file3 ... (output goes to file1.tdy, file2.tdy, file3.tdy, ...) perltidy [ options ] file1 -o outfile perltidy [ options ] file1 -st >outfile perltidy [ options ] <infile >outfile