10
1
mirror of https://gitlab.com/scemama/qmcchem.git synced 2024-11-15 02:23:38 +01:00
qmcchem/ocaml/Qmcchem_info.ml

33 lines
581 B
OCaml
Raw Normal View History

2017-10-10 09:39:58 +02:00
open Core
2015-12-29 01:16:19 +01:00
let run ezfio_filename =
Qputils.set_ezfio_filename ezfio_filename;
2015-12-29 01:16:19 +01:00
let qmcchem_info =
Lazy.force Qmcchem_config.qmcchem_info
in
2017-10-10 09:39:58 +02:00
let prog, argv =
2015-12-29 01:16:19 +01:00
qmcchem_info,
[ qmcchem_info ; ezfio_filename ]
in
ignore @@
2017-10-10 09:39:58 +02:00
Unix.exec ~prog ~argv ()
2015-12-29 01:16:19 +01:00
let spec =
let open Command.Spec in
empty
+> anon ("ezfio_file" %: string)
let command =
2018-03-14 17:02:52 +01:00
Command.basic_spec
2015-12-29 01:16:19 +01:00
~summary: "Display info on an EZFIO database"
~readme:(fun () ->
"
Display info on an EZFIO database
")
spec
(fun ezfio_file () -> run ezfio_file )