From 678ebc5712e94e1cca0727d882bf1aeae2670039 Mon Sep 17 00:00:00 2001 From: Michael Mikonos <127171689+mknos@users.noreply.github.com> Date: Sun, 28 Jan 2024 15:38:51 +0800 Subject: [PATCH] rm: document -v * Add pod description for -v flag and include it in usage string * Currently nothing calls usage(), but this is still helpful for reading pod2text --- bin/rm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/rm b/bin/rm index c3112a38..7efb20c5 100755 --- a/bin/rm +++ b/bin/rm @@ -19,7 +19,7 @@ rm - remove directory entries =head1 SYNOPSIS - rm [-fiPrR] file ... + rm [-fiPrRv] file ... =head1 DESCRIPTION @@ -37,7 +37,7 @@ rm - remove directory entries =item * -R - remove directories recursively -=item * -v +=item * -v - show the name of each file after it is removed =back @@ -283,7 +283,7 @@ sub usage { sub error_fh { my $self = shift; $self->{error_fh} } sub error { my $self = shift; - print { $self->error_fh || * STDERR } @_; + print { $self->error_fh || *STDERR } @_; } sub output_fh { my $self = shift; $self->{output_fh} }