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=d3e16e5e4e20b784645e5f6379dc42a659895665;hpb=a6c29f38143062ac50a77abd32ebe05613b37d11;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Admin/Usage.pm b/lib/DBIx/Class/Admin/Usage.pm index d3e16e5..ddd925a 100644 --- a/lib/DBIx/Class/Admin/Usage.pm +++ b/lib/DBIx/Class/Admin/Usage.pm @@ -22,16 +22,11 @@ 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; + return join qq{\n}, $self->pod_leader_text, $self->pod_option_text, $self->pod_authorlic_text; } sub pod_leader_text { @@ -42,6 +37,17 @@ sub pod_leader_text { } +sub pod_authorlic_text { + + return join ("\n\n", + '=head1 AUTHORS', + 'See L', + '=head1 LICENSE', + 'You may distribute this code under the same terms as Perl itself', + '=cut', + ); +} + sub pod_option_text { my ($self) = @_; @@ -54,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;