aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdocs/autodocifier.pl61
1 files changed, 55 insertions, 6 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl
index 567b10310..c119215d4 100755
--- a/docs/autodocifier.pl
+++ b/docs/autodocifier.pl
@@ -77,7 +77,7 @@ sub pod_for_usage {
77 : ""; 77 : "";
78 78
79 return 79 return
80 "=item I<$name>". 80 "=item B<$name>".
81 "\n\n" . 81 "\n\n" .
82 "$name $trivial". 82 "$name $trivial".
83 "\n\n" . 83 "\n\n" .
@@ -192,24 +192,73 @@ This script was based on a script by Erik Andersen (andersen@lineo.com).
192 192
193=over 4 193=over 4
194 194
195=item --help 195=item B<--help>
196 196
197This displays the help message. 197This displays the help message.
198 198
199=item --pod 199=item B<--pod>
200 200
201Generate POD (this is the default) 201Generate POD (this is the default)
202 202
203=item --sgml 203=item B<--sgml>
204 204
205Generate SGML 205Generate SGML
206 206
207=item --verbose 207=item B<--verbose>
208 208
209Be verbose (not implemented) 209Be verbose (not implemented)
210 210
211=back 211=back
212 212
213=head1 FORMAT
214
215The following is an example of some data this script might parse.
216
217 #define length_trivial_usage \
218 "STRING"
219 #define length_full_usage \
220 "Prints out the length of the specified STRING."
221 #define length_example_usage \
222 "$ length "Hello"\n" \
223 "5\n"
224
225Each entry is a cpp macro that defines a string. The macros are
226named systematically in the form:
227
228 $name_$type_usage
229
230$name is the name of the applet. $type can be "trivial", "full", "notes",
231or "example". Every documentation macro must end with "_usage".
232
233The definition of the types is as follows:
234
235=over 4
236
237=item B<trivial>
238
239This should be a brief, one-line description of parameters that
240the command expects. This will be displayed when B<-h> is issued to
241a command. I<REQUIRED>
242
243=item B<full>
244
245This should contain descriptions of each option. This will also
246be displayed along with the trivial help if BB_FEATURE_TRIVIAL_HELP
247is disabled. I<REQUIRED>
248
249=item B<notes>
250
251This is documentation that is intended to go in the POD or SGML, but
252not be output when a B<-h> is given to a command. To see an example
253of notes being used, see init_notes_usage. I<OPTIONAL>
254
255=item B<example>
256
257This should be an example of how the command is acutally used.
258I<OPTIONAL>
259
260=back
261
213=head1 FILES 262=head1 FILES
214 263
215F<usage.h> 264F<usage.h>
@@ -226,4 +275,4 @@ John BEPPU <beppu@lineo.com>
226 275
227=cut 276=cut
228 277
229# $Id: autodocifier.pl,v 1.17 2001/03/15 21:08:01 beppu Exp $ 278# $Id: autodocifier.pl,v 1.18 2001/04/05 19:35:17 beppu Exp $