]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/binaries/transcript/top.ml
- Procedural: more support for the Debug inline option (does not work yet)
[helm.git] / helm / software / components / binaries / transcript / top.ml
index c92b71512e05ffdb47432702cae54e31887011e2..b66146b2ea9e375ea9b729b3eee5c9c9d7658ff6 100644 (file)
@@ -32,7 +32,12 @@ let main =
    let help_p = " verbose parsing" in
    let help_x = " verbose character escaping" in
    let set_cwd dir = Options.cwd := dir; Engine.init () in
-   let process_package package = Engine.produce (Engine.make package) in
+   let process_file file =
+      if Sys.file_exists file || Sys.file_exists (file ^ Engine.suffix) then
+         begin Engine.produce (Engine.make file); Options.sources := [] end
+      else
+         Options.sources := file :: !Options.sources
+   in
    Arg.parse [
       ("-C", Arg.String set_cwd, help_C);
       ("-g", Arg.Set Options.getter, help_g);
@@ -40,4 +45,4 @@ let main =
       ("-m", Arg.Clear Options.comments, help_m);
       ("-p", Arg.Set Options.verbose_parser, help_p);
       ("-x", Arg.Set Options.verbose_escape, help_x);
-   ] process_package help
+   ] process_file help