2017-10-10 09:39:58 +02:00
|
|
|
open Core
|
2015-12-29 01:16:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
let run ezfio_filename =
|
2016-01-18 20:17:37 +01:00
|
|
|
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 )
|
|
|
|
|
|
|
|
|