X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbin%2Froles%2Froles.ml;h=c3dce2b8d32d9087bc310a4f3bbd7c841d38a274;hb=2c9f4fddc259b09b6e71b18eef78f0bed38eeb14;hp=bbabd22647e29e75b10420ed9d66fdaf10dd6003;hpb=f07cd97493f650ee779be874d1159c0e807f8273;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/bin/roles/roles.ml b/matita/matita/contribs/lambdadelta/bin/roles/roles.ml index bbabd2264..c3dce2b8d 100644 --- a/matita/matita/contribs/lambdadelta/bin/roles/roles.ml +++ b/matita/matita/contribs/lambdadelta/bin/roles/roles.ml @@ -13,9 +13,12 @@ module EE = RolesEngine module EG = RolesGlobal module ET = RolesTypes 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_L = " Debug osn lexer" +let help_W = " Run as an LWS application" let help_X = " Reset all options to defaults" let help_a = " Add selected names to a role" let help_m = " Add roles relating matching names" @@ -25,7 +28,7 @@ let help_r = " Load current status" let help_s = " Start a stage with this version" let help_t = " Toggle the selection of this pointed entry" let help_w = " Save current status" -let help = "Usage: roles [ -LXamprw | -C | -os | -t | ]*" +let help = "Usage: roles [ -LWXamprw | -B | -C | -os | -t | ]*" let add_tops s = EE.add_tops (EU.version_of_string s) @@ -43,8 +46,10 @@ let process s = let _main = try Arg.parse [ + "-B", Arg.String ((:=) EG.base_url), help_B; "-C", Arg.String ((:=) EG.wd), help_C; "-L", Arg.Set EG.debug_lexer, help_L; + "-W", Arg.Unit WE.init, help_W; "-X", Arg.Unit EG.clear, help_X; "-a", Arg.Unit EE.add_role, help_a; "-m", Arg.Unit EE.add_matching, help_m;