Skip to content
Snippets Groups Projects
Commit 85e3391d authored by erwan's avatar erwan
Browse files

rdbgui4sasa: don't run anything if not arg is provided, an print a welcome msg

parent e7b8f530
No related branches found
No related tags found
No related merge requests found
...@@ -321,6 +321,17 @@ let gui str = ...@@ -321,6 +321,17 @@ let gui str =
;; ;;
let welcome () =
Printf.printf "rdbgui4sasa is a GUI wrapper around rdbg when used with sasa\n";
Printf.printf "you can thus replace rdbg by rdbgui4sasa, but sasa *must be* involved in the session\n";
Printf.printf "Example: \n";
Printf.printf " rdbgui4sasa -sut \"sasa g.dot\"\n";
Printf.printf " rdbgui4sasa -h\n\n";
flush stdout
let _ = let _ =
let n = Array.length Sys.argv in
welcome ();
if n = 1 then exit 0;
ignore (read_stdout ic_stdout); ignore (read_stdout ic_stdout);
gui (read_line ()) (* read the session choice *) gui (read_line ()) (* read the session choice *)
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