summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-06-08 13:15:43 +0000
committermichelou <michelou@epfl.ch>2006-06-08 13:15:43 +0000
commit8b6eba1a9c40eeb5b89abe181ff5e18fe21d1758 (patch)
tree6b912ed2d51416648da9a89de61c1f5befa98832
parentb9a54c2751105b823a4a6dc29c7f60d6db67b400 (diff)
downloadscala-8b6eba1a9c40eeb5b89abe181ff5e18fe21d1758.tar.gz
scala-8b6eba1a9c40eeb5b89abe181ff5e18fe21d1758.tar.bz2
scala-8b6eba1a9c40eeb5b89abe181ff5e18fe21d1758.zip
added CmdOptionLong in file man/man1/Command.scala
-rw-r--r--docs/man/src/man/man1/Command.scala8
-rw-r--r--docs/man/src/man/man1/sbaz.scala4
2 files changed, 9 insertions, 3 deletions
diff --git a/docs/man/src/man/man1/Command.scala b/docs/man/src/man/man1/Command.scala
index b59c27d854..49c79e6f66 100644
--- a/docs/man/src/man/man1/Command.scala
+++ b/docs/man/src/man/man1/Command.scala
@@ -22,7 +22,13 @@ trait Command {
Mono(Bold(NDash & opt) & " " & params & " ")
protected def CmdOption(opt: String): AbstractText =
- CmdOption(opt, "")
+ Mono(Bold(NDash & opt) & " ")
+
+ protected def CmdOptionLong(opt: String, params: AbstractText) =
+ Mono(Bold(NDash & NDash & opt) & " " & params & " ")
+
+ protected def CmdOptionLong(opt: String): AbstractText =
+ Mono(Bold(NDash & NDash & opt) & " ")
protected def Argument(arg: String): AbstractText =
"<" & Italic(arg) & ">"
diff --git a/docs/man/src/man/man1/sbaz.scala b/docs/man/src/man/man1/sbaz.scala
index 09bf2fcdb2..6095b71290 100644
--- a/docs/man/src/man/man1/sbaz.scala
+++ b/docs/man/src/man/man1/sbaz.scala
@@ -118,8 +118,8 @@ object sbaz extends Command {
"but it may also be specified on the command line with the " &
CmdOption("i") & " option."),
Definition(
- MBold("share") & " " & CmdOption("-template"),
- "If " & CmdOption("-template") & " is specified, then instead " &
+ MBold("share") & " " & CmdOptionLong("template"),
+ "If " & CmdOptionLong("template") & " is specified, then instead " &
"of uploading a description, the command prints out a template " &
"of a package advertisement."),
Definition(