1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
/* NSC -- new Scala compiler
* Copyright 2005-2006 LAMP/EPFL
* @author Stephane Micheloud
*/
//$Id$
package scala.man1
object scalap extends Command {
import _root_.scala.tools.docutil.ManPage._
protected def cn = new Error().getStackTrace()(0).getClassName()
val name = Section("NAME",
MBold(command) & " " & NDash & " Scala class file decoder for the " &
Link("Scala 2", "http://scala.epfl.ch/") & " language")
val synopsis = Section("SYNOPSIS",
CmdLine(" [ " & Argument("options") & " ] " & Argument("source file")))
val parameters = Section("PARAMETERS",
DefinitionList(
Definition(
Mono(Argument("options")),
"Command line options. See " & Link(Bold("OPTIONS"), "#options") &
" below."),
Definition(
Mono(Argument("source file")),
"One class file to be decoded (such as " &
Mono("hello.HelloWorld") & ").")))
val description = Section("DESCRIPTION",
"The " & MBold(command) & " tool reads a class file generated by the" &
"Scala compiler, and displays object and class definitions.",
"By default, " & MBold(command) & " looks for the given class file " &
"in the current directory. You can specify a separate classpath with " &
CmdOption("classpath") & "(see " & Link(Bold("OPTIONS"), "#options") & ", below).")
val options = Section("OPTIONS",
"The decoder has a set of standard options that are supported on the " &
"current development environment and will be supported in future releases.",
Section("Standard Options",
DefinitionList(
Definition(
CmdOption("help"),
"Display this usage message."),
Definition(
CmdOption("private"),
"Print private definitions."),
Definition(
CmdOption("verbose"),
"Print out additional information."),
Definition(
CmdOption("version"),
"Print product version and exit."),
Definition(
CmdOption("cp") & "| " & CmdOption("classpath"),
"Specify where to find user class files."))))
val examples = Section("EXAMPLES",
DefinitionList(
Definition(
"Display definitions for a generated class file",
CmdLine("hello.HelloWorld"))))
val exitStatus = Section("EXIT STATUS",
MBold(command) & " returns a zero exist status if it succeeds to process " &
"the specified input files. Non zero is returned in case of failure.")
override val authors = Section("AUTHOR",
"Written by Matthias Zenger.")
val seeAlso = Section("SEE ALSO",
Link(Bold("sbaz") & "(1)", "sbaz.html") & ", " &
Link(Bold("scala") & "(1)", "scala.html") & ", " &
Link(Bold("scalac") & "(1)", "scalac.html") & ", " &
Link(Bold("scaladoc") & "(1)", "scaladoc.html") & ", " &
Link(Bold("scalaint") & "(1)", "scalaint.html") & ", " &
Link(Bold("scalascript") & "(1)", "scalascript.html"))
def manpage = new Document {
title = command
date = "June 8, 2006"
author = "Stephane Micheloud"
version = "0.2"
sections = List(
name,
synopsis,
parameters,
description,
options,
examples,
exitStatus,
authors,
bugs,
copyright,
seeAlso)
}
}
|