X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FAdmin%2FUsage.pm;h=ddd925a204b1c3d941e8bdd2ca4016ff402f00d2;hb=51bec050485100ecaf8584325a7e9bce9d4fd6bc;hp=9cae79b57d9ba9aa638bfa9378ff7e21e00e7e5d;hpb=fd576c431ab5e0454b442a5d004dbe9a077f1c14;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Admin/Usage.pm b/lib/DBIx/Class/Admin/Usage.pm index 9cae79b..ddd925a 100644 --- a/lib/DBIx/Class/Admin/Usage.pm +++ b/lib/DBIx/Class/Admin/Usage.pm @@ -22,13 +22,8 @@ sub set_simple { } -=head2 pod - -This returns the usage formated as a pod document - -=cut - +# This returns the usage formated as a pod document sub pod { my ($self) = @_; return join qq{\n}, $self->pod_leader_text, $self->pod_option_text, $self->pod_authorlic_text; @@ -44,15 +39,13 @@ sub pod_leader_text { sub pod_authorlic_text { - return <<'EOA' -=head1 AUTHORS - -See L - -=head1 LICENSE - -You may distribute this code under the same terms as Perl itself -EOA + return join ("\n\n", + '=head1 AUTHORS', + 'See L', + '=head1 LICENSE', + 'You may distribute this code under the same terms as Perl itself', + '=cut', + ); } @@ -67,6 +60,7 @@ sub pod_option_text { foreach my $opt (@options) { my $spec = $opt->{spec}; my $desc = $opt->{desc}; + next if ($desc eq 'hidden'); if ($desc eq 'spacer') { $string .= "=back\n\n=head2 $spec\n\n=cut\n\n=over\n\n"; next;