src/Pure/Tools/update_then.scala
changeset 62836 98dbed6cfa44
parent 62454 38c89353b349
child 68994 d961e11e0e87
--- a/src/Pure/Tools/update_then.scala	Sun Apr 03 22:54:31 2016 +0200
+++ b/src/Pure/Tools/update_then.scala	Sun Apr 03 23:01:39 2016 +0200
@@ -28,11 +28,11 @@
   }
 
 
-  /* command line entry point */
+  /* Isabelle tool wrapper */
 
-  def main(args: Array[String])
-  {
-    Command_Line.tool0 {
+  val isabelle_tool =
+    Isabelle_Tool("update_then", "expand old Isar command conflations 'hence' and 'thus'", args =>
+    {
       val getopts = Getopts("""
 Usage: isabelle update_then [FILES|DIRS...]
 
@@ -51,6 +51,5 @@
         spec <- specs
         file <- File.find_files(Path.explode(spec).file, file => file.getName.endsWith(".thy"))
       } update_then(Path.explode(File.standard_path(file)))
-    }
-  }
+    })
 }