src/Pure/Tools/doc.scala
changeset 82762 e8194d555625
parent 82761 88ffadf17062
equal deleted inserted replaced
82761:88ffadf17062 82762:e8194d555625
   120   }
   120   }
   121 
   121 
   122   object Doc_Names extends Scala.Fun_String("doc_names") {
   122   object Doc_Names extends Scala.Fun_String("doc_names") {
   123     val here = Scala_Project.here
   123     val here = Scala_Project.here
   124     def apply(arg: String): String = {
   124     def apply(arg: String): String = {
   125       val ml_settings = ML_Settings(Options.init() + ("ML_platform=" + arg))
   125       val ml_settings = ML_Settings.init(ml_platform = arg)
   126       cat_lines((for (entry <- contents(ml_settings).entries(pdf = true)) yield entry.name).sorted)
   126       cat_lines((for (entry <- contents(ml_settings).entries(pdf = true)) yield entry.name).sorted)
   127     }
   127     }
   128   }
   128   }
   129 
   129 
   130 
   130 
   147 
   147 
   148   View Isabelle documentation.
   148   View Isabelle documentation.
   149 """)
   149 """)
   150       val docs = getopts(args)
   150       val docs = getopts(args)
   151 
   151 
   152       val ml_settings = ML_Settings(Options.init())
   152       val ml_settings = ML_Settings.init()
   153 
   153 
   154       if (docs.isEmpty) Output.writeln(cat_lines(contents_lines().map(_._2)), stdout = true)
   154       if (docs.isEmpty) Output.writeln(cat_lines(contents_lines().map(_._2)), stdout = true)
   155       else {
   155       else {
   156         docs.foreach(name =>
   156         docs.foreach(name =>
   157           contents(ml_settings).entries(name = docs.contains).headOption match {
   157           contents(ml_settings).entries(name = docs.contains).headOption match {