Skip to content
Snippets Groups Projects
Commit cf70b199 authored by Hans-Peter Deifel's avatar Hans-Peter Deifel :turtle: Committed by Hans-Peter Deifel
Browse files

Show correct binary name in "Usage" of main program

parent e928d370
No related branches found
No related tags found
No related merge requests found
...@@ -44,8 +44,8 @@ let _ = ...@@ -44,8 +44,8 @@ let _ =
print_endline (FE.stringFromFunctorExp (FE.functorExpFromString str)) print_endline (FE.stringFromFunctorExp (FE.functorExpFromString str))
*) *)
let printUsage () = let printUsage name =
print_endline "Usage: \"alc <task> <functor> [<flags>]\" where"; print_endline ("Usage: \"" ^ name ^ " <task> <functor> [<flags>]\" where");
print_endline " <task> in { sat print verify nnf prov (is »not.(sat ¬f)«) nom2fix }"; print_endline " <task> in { sat print verify nnf prov (is »not.(sat ¬f)«) nom2fix }";
print_endline " <functor> in { MultiModalK (or equivalently K)"; print_endline " <functor> in { MultiModalK (or equivalently K)";
print_endline " MultiModalKD (or equivalently KD)"; print_endline " MultiModalKD (or equivalently KD)";
...@@ -231,7 +231,7 @@ let rec parseFlags arr offs : unit = ...@@ -231,7 +231,7 @@ let rec parseFlags arr offs : unit =
) )
let _ = let _ =
if Array.length Sys.argv < 3 then printUsage() if Array.length Sys.argv < 3 then printUsage (Sys.argv.(0))
else else
let choice = Sys.argv.(1) in let choice = Sys.argv.(1) in
parseFlags Sys.argv 3; parseFlags Sys.argv 3;
...@@ -243,6 +243,6 @@ let _ = ...@@ -243,6 +243,6 @@ let _ =
| "verify" -> choiceVerify () | "verify" -> choiceVerify ()
| "graph" -> choiceGraph () | "graph" -> choiceGraph ()
| "nom2fix" -> choiceNom2fix() | "nom2fix" -> choiceNom2fix()
| _ -> printUsage () | _ -> printUsage (Sys.argv.(0))
(* vim: set et sw=2 sts=2 ts=8 : *) (* vim: set et sw=2 sts=2 ts=8 : *)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment