X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbin%2Froles%2Froles.ml;h=d2fd6e0a13d7e504165d92bf5e532744c585b059;hb=9bb0e91ff4c24ae6e51cac336b9edd6d6bf1ed0d;hp=2b61c1264010c7154adbfb8783b7b89e42c443a2;hpb=f5bc9206835d61109a72c7b973dad8dd21914950;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/bin/roles/roles.ml b/matita/matita/contribs/lambdadelta/bin/roles/roles.ml index 2b61c1264..d2fd6e0a1 100644 --- a/matita/matita/contribs/lambdadelta/bin/roles/roles.ml +++ b/matita/matita/contribs/lambdadelta/bin/roles/roles.ml @@ -18,11 +18,15 @@ let help_C = " Set this working directory (default: current directory)" let help_L = " Debug osn lexer" let help_X = " Reset all options to defaults" let help_a = " Add selected names to a role" +let help_o = " Add top objects for this stage" 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 [ -LXarw | -C | -s | -t | ]*" +let help = "Usage: roles [ -LXarw | -C | -os | -t | ]*" + +let add_tops s = + EE.add_tops (EU.version_of_string s) let new_stage s = EE.new_stage (EU.version_of_string s) @@ -33,7 +37,7 @@ let toggle_entry s = let process s = match Filename.extension s with | ".txt" -> EE.read_waiting s - | x -> EU.raise_error (ET.EExt x) + | x -> EU.raise_error (ET.EWrongExt x) let _main = try Arg.parse [ @@ -41,6 +45,7 @@ let _main = try "-L", Arg.Set EG.debug_lexer, help_L; "-X", Arg.Unit EG.clear, help_X; "-a", Arg.Unit EE.add_role, help_a; + "-o", Arg.String add_tops, help_o; "-r", Arg.Unit EE.read_status, help_r; "-s", Arg.String new_stage, help_s; "-t", Arg.String toggle_entry, help_t;