src/Pure/Tools/update_header.scala
changeset 62836 98dbed6cfa44
parent 62454 38c89353b349
child 68994 d961e11e0e87
--- a/src/Pure/Tools/update_header.scala	Sun Apr 03 22:54:31 2016 +0200
+++ b/src/Pure/Tools/update_header.scala	Sun Apr 03 23:01:39 2016 +0200
@@ -23,14 +23,14 @@
   }
 
 
-  /* command line entry point */
+  /* Isabelle tool wrapper */
 
   private val headings =
     Set("chapter", "section", "subsection", "subsubsection", "paragraph", "subparagraph")
 
-  def main(args: Array[String])
-  {
-    Command_Line.tool0 {
+  val isabelle_tool =
+    Isabelle_Tool("update_header", "replace obsolete theory header command", args =>
+    {
       var section = "section"
 
       val getopts = Getopts("""
@@ -57,6 +57,5 @@
         spec <- specs
         file <- File.find_files(Path.explode(spec).file, file => file.getName.endsWith(".thy"))
       } update_header(section, Path.explode(File.standard_path(file)))
-    }
-  }
+    })
 }