summaryrefslogtreecommitdiff
path: root/src/manual
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-06-15 15:23:45 +0000
committerLex Spoon <lex@lexspoon.org>2006-06-15 15:23:45 +0000
commit5f49bdadcf1cfb882e00793cbe2737afd2323756 (patch)
treefda819ef0994a58fc85dcd865f1ef2e028ce145e /src/manual
parentca712dacc6bcd3910cc132b77f49a7e9a1c3e4cb (diff)
downloadscala-5f49bdadcf1cfb882e00793cbe2737afd2323756.tar.gz
scala-5f49bdadcf1cfb882e00793cbe2737afd2323756.tar.bz2
scala-5f49bdadcf1cfb882e00793cbe2737afd2323756.zip
adjusted the syntax to be compatible with exist...
adjusted the syntax to be compatible with existing uses of "scala"
Diffstat (limited to 'src/manual')
-rw-r--r--src/manual/scala/man1/scala.scala51
1 files changed, 26 insertions, 25 deletions
diff --git a/src/manual/scala/man1/scala.scala b/src/manual/scala/man1/scala.scala
index 28ec268dab..7b217f567c 100644
--- a/src/manual/scala/man1/scala.scala
+++ b/src/manual/scala/man1/scala.scala
@@ -19,34 +19,34 @@ object scala extends Command {
val synopsis = Section("SYNOPSIS",
- CmdLine(" [ " & Argument("compiler-options") & " - ] " &
- "[ [ -object | -script ] "
- & " " & Argument("object-or-file")
- & " " & Argument("arguments") & " ]"))
+ CmdLine(
+ " [ " & Argument("compiler-option") & " | " &
+ Mono("-howtorun:") & Argument("how") & " ]... " &
+ "[ " & Argument("torun") & " " & Argument("argument") &
+ "... ]"))
val parameters = Section("PARAMETERS",
DefinitionList(
Definition(
- Mono(Argument("compiler-options")),
+ Mono(Argument("compiler-option")),
"Options for the compiler. See " &
- Link(Bold("scalac") & "(1)", "scalac.html")),
+ Link(Bold("scalac") & "(1)", "scalac.html") & "."),
Definition(
- Mono("-object"),
- "The following argument specifies a pre-compiled class to run."),
+ Mono("-howtorun:") & Argument("how"),
+ "How to execute " & Argument("torun") & ", if it is present. " &
+ "Options for " & Argument("how") & " are " & Mono("guess") &
+ " (the default), " & Mono("script") & ", and " & Mono("object") &
+ "."),
Definition(
- Mono("-script"),
- "The following argument specifies a script file to run."),
+ Mono(Argument("torun")),
+ "A top-level object or a script file to run."),
Definition(
- Mono(Argument("object-or-file")),
- "A top-level object or a script file to run"),
-
- Definition(
- Mono(Argument("arguments")),
- "Arguments to pass to the object or script")))
+ Mono(Argument("argument")),
+ "An arguments to pass to " & Argument("torun") & ".")))
val description = Section("DESCRIPTION",
@@ -54,31 +54,32 @@ object scala extends Command {
"environment. The Scala code to run is " &
"specified in one of three ways:",
- BulletList(
+ NumberedList(
"With no arguments specified, an interactive interpreter starts " &
"and reads commands interactively.",
- "With -object specified, the fully qualified name of a top-level " &
+ "With " & Mono("-howtorun:object") & " specified, the fully " &
+ "qualified name of a top-level " &
"Scala object may be specified. The object should previously have " &
"been compiled using " & Link(Bold("scalac") & "(1)", "scalac.html") &
".",
- "With -script specified, a file containing Scala code may be " &
- "specified."
+ "With " & Mono("-howtorun:script") & " specified, a file " &
+ "containing Scala code may be specified."
),
- "If " & Argument("object-or-file") & " is specified but both -object " &
- " and -script are omitted, then " & MBold(command) &
- " will check whether a file of the " &
+ "If " & Mono("-howtorun:") & " is left as the default (" & Mono("guess") &
+ "), then the " & MBold(command) & " command " &
+ "will check whether a file of the " &
"specified name exists. If it does, then it will treat it as a " &
"script file; if it does not, then it will treat it as the name " &
- "of an object",
+ "of an object.",
"In all three cases, arbitrary scalac options may be specified. "&
"The most common option is to specify a classpath with " &
Mono("-classpath") & ", but see the " &
Link(Bold("scalac") & "(1)", "scalac.html") & " page for " &
- "full details.",
+ "full details. ",
"If an object is specified to run, then that object must be a top-level " &