From 9374398607c8eb639d56fdf98f501bd9ba607ccd Mon Sep 17 00:00:00 2001 From: rand00 Date: Thu, 28 Apr 2022 16:08:06 +0200 Subject: [PATCH] Switched to using --version for printing visualization-version - will not be the same as library version --- app/main.ml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/main.ml b/app/main.ml index 5ba8a26..efa567c 100644 --- a/app/main.ml +++ b/app/main.ml @@ -77,8 +77,15 @@ let file = Arg.(required & pos 0 (some file) None & info [ ] ~doc ~docv:"FILE") let cmd = - let term = Term.(const jump $ setup_log $ transitive $ file $ output_format) in - let info = Cmd.info "opam-graph" ~version:"%%VERSION%%" in + let term = Term.( + const jump + $ setup_log + $ transitive + $ file + $ output_format + ) in + let version = Fmt.str "%d" Opam_graph.visualization_version in + let info = Cmd.info "opam-graph" ~version in Cmd.v info term let () = Cmd.eval cmd |> exit