X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbin%2Froles%2Froles.ml;h=6d9620c8f633451fe3caffca93bf105161ea849c;hp=c3dce2b8d32d9087bc310a4f3bbd7c841d38a274;hb=cfccf434a57e10848d74d06674af4ec9cef0f0ca;hpb=7666f9dddfcaca5671dd25d3cd2095481968c7bf diff --git a/matita/matita/contribs/lambdadelta/bin/roles/roles.ml b/matita/matita/contribs/lambdadelta/bin/roles/roles.ml index c3dce2b8d..6d9620c8f 100644 --- a/matita/matita/contribs/lambdadelta/bin/roles/roles.ml +++ b/matita/matita/contribs/lambdadelta/bin/roles/roles.ml @@ -16,7 +16,7 @@ module EU = RolesUtils module WE = WebEngine let help_B = " Set this base url (default: http://helm.cs.unibo.it/lambdadelta/)" -let help_C = " Set this working directory (default: current directory)" +let help_C = " Set this relative working directory (default: invocation directory)" let help_L = " Debug osn lexer" let help_W = " Run as an LWS application" let help_X = " Reset all options to defaults" @@ -30,6 +30,9 @@ let help_t = " Toggle the selection of this pointed entry" let help_w = " Save current status" let help = "Usage: roles [ -LWXamprw | -B | -C | -os | -t | ]*" +let change_cwd s = + EG.cwd := Filename.concat !EG.cwd s + let add_tops s = EE.add_tops (EU.version_of_string s) @@ -47,7 +50,7 @@ let process s = let _main = try Arg.parse [ "-B", Arg.String ((:=) EG.base_url), help_B; - "-C", Arg.String ((:=) EG.wd), help_C; + "-C", Arg.String change_cwd, help_C; "-L", Arg.Set EG.debug_lexer, help_L; "-W", Arg.Unit WE.init, help_W; "-X", Arg.Unit EG.clear, help_X;