Browse Source

Add aliases

 - Add short commands
Leo 10 years ago
parent
commit
bbef273f6b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/oclaunch.ml

+ 2 - 1
src/oclaunch.ml

@@ -59,7 +59,8 @@ let commands =
     ~readme:(fun () -> "See https://gitlab.com/WzukW/oclaunch for help")
     (* TODO if number is out of the mist, return error message *)
     Command.Spec.(empty
-    +> flag "--reset-tmp" no_arg ~doc:"Reinitialises launches by deleting temporal file."
+    +> flag ~aliases:["-reset-tmp" ; "-r"] "--reset-tmp" no_arg
+                    ~doc:"Reinitialises launches by deleting temporal file."
     +> anon (maybe ("Command number" %: int)))
     (fun reset_tmp num_cmd () ->
        match reset_tmp with