App-wdq
view release on metacpan or search on metacpan
$help = cBold('wdq') . " $VERSION\n";
}
elsif ( $topic =~ /^pref?(ix(es)?)?$/ ) {
$help = join( "\n",
map { sprintf "%8s: %s", $_, cIdentifier( $NAMESPACES{$_} ); }
sort keys %NAMESPACES )
. "\n";
$help =~ s/^([^:]+):/cName($1).":"/mge;
}
elsif ( $topic =~ /^out(put)?$/ ) {
$help = pod_text( -sections => ['OUTPUT'] );
$help =~
s/( (name|value|identifier|title|error))/$COLORS{substr $2, 0,1}.$1."\e[0m"/mge
if $OPT{color};
}
elsif ( $topic eq 'pretty' ) {
$help = pod_text( -sections => ['OUTPUT/Pretty'] );
$help =~
s/( (name|value|identifier|title|error))/$COLORS{substr $2, 0,1}.$1."\e[0m"/mge
if $OPT{color};
}
elsif ( $topic =~ /^formats?$/ ) {
$help = pod_text( -sections => ['OUTPUT/Formats'] );
}
elsif ( $topic =~ /^modes?$/ ) {
$help = pod_text( -sections => ['MODES'] );
}
elsif ( $topic =~ /^exp?(ort)?$/ ) {
$help = pod_text( -sections => ['OUTPUT/Export'] );
}
elsif ( $topic =~ /^ont(ology)?$/ ) {
$help = pod_text( -sections => ['WIKIDATA ONTOLOGY'] );
$help =~ s/^.*Wikidata Ontology:.*\n//;
$help =~ s/^( | )//mg;
$help =~ s/^([a-z]+)/cBold($1)/mgei;
$help =~ s/ ([A-Z][A-Za-z]+)/" ".cBold($1)/mge;
$help =~ s/ ([a-z]+:([a-zA-Z_]+)?|[a-z][a-zA-Z]+)/" ".cName($1)/mge;
$help =~ s/(@[a-z_]+)/cIdentifier($1)/mge;
}
=item --man
Show detailled manual
=item --version|-V
Show version if this script
=back
=head1 OUTPUT
Output can be controlled with options C<--format>/C<-f>, C<--export>,
C<--header>/C<--no-header>/C<-H>, and C<--color>/C<--no-color>/C<-C>.
=head2 Formats
Option C<--format>/C<-f> sets an output format or string template:
=over
( run in 0.309 second using v1.01-cache-2.11-cpan-4e96b696675 )