mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-10 21:24:06 -05:00
feat: add --version flag
This commit is contained in:
parent
10cfa137b6
commit
c63887a1f0
2 changed files with 12 additions and 0 deletions
|
|
@ -8,4 +8,15 @@
|
|||
sidekick.msat-solver sidekick-bin.smtlib)
|
||||
(flags :standard -safe-string -color always -open Sidekick_util))
|
||||
|
||||
(rule
|
||||
(targets sidekick_version.ml)
|
||||
(deps (universe))
|
||||
(mode promote)
|
||||
(action
|
||||
(with-stdout-to %{targets}
|
||||
(progn
|
||||
(echo "let version = {git|")
|
||||
(run git rev-parse HEAD)
|
||||
(echo "|git}")))))
|
||||
|
||||
(ocamllex (modules Dimacs_lexer))
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ let argspec = Arg.align [
|
|||
"--no-p", Arg.Clear p_progress, " no progress bar";
|
||||
"--size", Arg.String (int_arg size_limit), " <s>[kMGT] sets the size limit for the sat solver";
|
||||
"--time", Arg.String (int_arg time_limit), " <t>[smhd] sets the time limit for the sat solver";
|
||||
"--version", Arg.Unit (fun () -> Printf.printf "version: %s\n%!" Sidekick_version.version; exit 0), " show version and exit";
|
||||
"-d", Arg.Int Msat.Log.set_debug, "<lvl> sets the debug verbose level";
|
||||
"--debug", Arg.Int Msat.Log.set_debug, "<lvl> sets the debug verbose level";
|
||||
] |> List.sort compare
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue