my $name = shift;
my $usage = shift;
return
- "FIXME";
+ "<fixme>\n".
+ " $name\n".
+ "</fixme>\n"
+ ;
}
# the keys are applet names, and
}
}
-#use Data::Dumper;
-#print Data::Dumper->Dump([\%docs], [qw(docs)]);
+my $generator = \&pod_for_usage;
+if (defined $opt{sgml}) {
+ $generator = \&sgml_for_usage;
+}
foreach my $name (sort keys %docs) {
- print pod_for_usage($name, $docs{$name});
+ print $generator->($name, $docs{$name});
}
exit 0;
=head1 OPTIONS
-these control my behaviour
-
-=over 8
+=over 4
=item --help
This displays the help message.
+=item --pod
+
+Generate POD (this is the default)
+
+=item --sgml
+
+Generate SGML
+
+=item --verbose
+
+Be verbose (not implemented)
+
=back
=head1 FILES
-files that I manipulate
+F<usage.h>
=head1 COPYRIGHT
=cut
-# $Id: autodocifier.pl,v 1.8 2001/02/23 17:41:41 beppu Exp $
+# $Id: autodocifier.pl,v 1.9 2001/02/23 17:51:08 beppu Exp $