makeskel.1 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. .TH makeskel 1 "11 November 2004" "Free Pascal" "FPC unit description file generator"
  2. .SH NAME
  3. makeskel \- generate description file for
  4. .B fpdoc.
  5. .SH SYNOPSIS
  6. \fBmakeskel\fP [--descr=filename] [--disable-arguments]
  7. [--disable-errors] [--disable-function-results]
  8. [--disable-private] [--disable-protected]
  9. [--disable-seealso] [--emit-class-separator]
  10. [--help] [--lang=language] [--output=filename]
  11. [--update]
  12. --package=name --input=cmdline
  13. .SH Description
  14. .B makeskel
  15. scans a Free Pascal unit source file and generates a skeleton description
  16. file for it. It generates nodes for all identifiers found in the interface
  17. section of the unit, although this behaviour can be adjusted with some
  18. options. It can also update an existing XML file, and then emits only nodes
  19. for identifiers for which no node exists yet.
  20. .SH Usage
  21. You can invoke
  22. .B makeskel
  23. with as the only required arguments the
  24. .B input
  25. and
  26. .B package
  27. arguments. It should at least contain the name of the unit file for which
  28. documentation should be generated and the name of the package to which the
  29. unit belongs. The output of
  30. .B makeskel
  31. will go to standard output by default.
  32. .SH Options
  33. .B makeskel
  34. has many options, most of them optional, defaults will be used in most
  35. cases.
  36. .TP
  37. .BI \-\-descr=descfile
  38. This option must be used in conjunction with the
  39. .I update
  40. option. It specifies the name of a description file
  41. .B descfile
  42. which must be updated. Note that the file must contain valid XML, or the
  43. update will fail. This option can be specified more than once.
  44. .TP
  45. .BI \-\-disable-arguments
  46. If this option is specified,
  47. .B makeskel
  48. will not emit nodes for the arguments of functions and procedures. By
  49. default, documentation nodes are emitted for functions and procedures as
  50. well.
  51. .TP
  52. .BI \-\-disable-errors
  53. By default, each documentation node will contain a
  54. .I errors
  55. node as well (excep for identifiers where this has no use, such as function
  56. arguments). If this option is specified, no
  57. .I errors
  58. node will be generated.
  59. .TP
  60. .BI \-\-disable-function-results
  61. By default, for functions, a
  62. .I result
  63. node will be generated, to describe the result of the function. If this
  64. option is specified, no function result node will be generated.
  65. .TP
  66. .BI \-\-disable-private
  67. By default, documentation nodes are also generated for private fields or methods
  68. of a class. if this option is specified, the generation of nodes for private
  69. fields or methods is skipped.
  70. .TP
  71. .B \-\-disable-protected
  72. By default, documentation nodes are also generated for protected fields or
  73. methods of a class. if this option is specified, the generation of nodes
  74. for protected fields or methods is skipped.
  75. .TP
  76. .B \-\-emit-class-separator
  77. If this option is specified, a visible comment with the name of the class
  78. for which documentation nodes will follow, is inserted between the nodes
  79. of two classes, making navigation easier.
  80. .TP
  81. .BI \-\-help
  82. Emit a short help text and exit.
  83. .TP
  84. .BI \-\-input=cmd
  85. The input (source) file to process. Multiple input files can be specified.
  86. The command may contain valid compiler options, currently the
  87. .I \-Fipath
  88. (search path) and
  89. .I \-dmacro
  90. (define macro) options are recognized.
  91. .TP
  92. .BI \-\-lang=language
  93. Sets the language for the output file. This will mainly set the strings used
  94. for the headers in various parts of the documentation files (by default
  95. they're in english). Currently, valid options are
  96. .RS
  97. .TP
  98. .I de
  99. German.
  100. .TP
  101. .I fr
  102. French.
  103. .TP
  104. .I nl
  105. Dutch.
  106. .RE
  107. .TP
  108. .BI \-\-output=filename
  109. This option tells
  110. .B makeskel
  111. where the output should go. If this option is not specified, the output is
  112. sent to standard output (the screen).
  113. .TP
  114. .BI \-\-package=packagename
  115. This option is required. It specifies the name of the package. All nodes
  116. will be generated inside a node with
  117. .B name
  118. attribute
  119. .I packagename.
  120. .TP
  121. .BI \-\-update
  122. Turns on update mode. In this mode, the output is a file which contains only
  123. the missing nodes to complete the documentation of the input files. The
  124. existing nodes must be specified with the
  125. .B descr
  126. argument. Note that the output file may
  127. .I not
  128. be the same as the input (description) nodes; A separate file must be
  129. specified (or no file, in which case output goes to standard output.
  130. .SH SEE ALSO
  131. .IP
  132. .BR ppc386 (1)
  133. .BR latex (1)
  134. .BR fpdoc (1)