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=14c0decc31599fbf9dbae139ef69cce12920d3b5;hp=bcb66d86481d699042a0f2ff076c7ac0b887b825;hb=4d3256c98f816a2d2dc7b97557b61364e18d0806;hpb=3be6630ba2a592488502b320e85e45b55a099580 diff --git a/matita/matita/contribs/lambdadelta/bin/roles/roles.ml b/matita/matita/contribs/lambdadelta/bin/roles/roles.ml index bcb66d864..14c0decc3 100644 --- a/matita/matita/contribs/lambdadelta/bin/roles/roles.ml +++ b/matita/matita/contribs/lambdadelta/bin/roles/roles.ml @@ -21,6 +21,7 @@ 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_d = " Remove selected names from roles" let help_m = " Add roles relating matching names" let help_n = " Start a stage with this version" let help_p = " Print current status on standard output" @@ -28,7 +29,8 @@ let help_r = " Load current status" let help_s = " Toggle the selection of this pointed entry" let help_t = " Add top objects for this stage" let help_w = " Save current status" -let help = "Usage: roles [ -LWXamprw | -B | -C | -nt | -s | ]*" +let help_x = " Toggle the expansion of this pointed entry" +let help = "Usage: roles [ -LWXadmprw | -B | -C | -nt | -sx | ]*" let change_cwd s = EG.cwd := Filename.concat !EG.cwd s @@ -42,6 +44,9 @@ let new_stage s = let select_entry s = EE.select_entry (EU.pointer_of_string s) +let expand_entry s = + EE.expand_entry (EU.pointer_of_string s) + let process s = match Filename.extension s with | ".txt" -> EE.read_waiting s @@ -55,6 +60,7 @@ let _main = try "-W", Arg.Unit WE.init, help_W; "-X", Arg.Unit EG.clear, help_X; "-a", Arg.Unit EE.add_role, help_a; + "-d", Arg.Unit EE.remove_roles, help_d; "-m", Arg.Unit EE.add_matching, help_m; "-n", Arg.String new_stage, help_n; "-p", Arg.Unit EE.print_status, help_p; @@ -62,5 +68,6 @@ let _main = try "-s", Arg.String select_entry, help_s; "-t", Arg.String add_tops, help_t; "-w", Arg.Unit EE.write_status, help_w; + "-x", Arg.String expand_entry, help_x; ] process help with ET.Error e -> Printf.eprintf "roles: %s\n%!" (EU.string_of_error e)