|
@@ -279,6 +279,34 @@ let edit =
|
|
|
)
|
|
|
;;
|
|
|
|
|
|
+(* Enable auto-launch *)
|
|
|
+let enable_al =
|
|
|
+ basic
|
|
|
+ ~summary:("Enable auto-launch, you may unset OC_DISABLE variable too.")
|
|
|
+
|
|
|
+ Spec.(
|
|
|
+ empty
|
|
|
+ +> shared_params
|
|
|
+ )
|
|
|
+ (fun _ () ->
|
|
|
+ Tmp_file.set_disable false
|
|
|
+ )
|
|
|
+;;
|
|
|
+
|
|
|
+(* Disable auto-launch *)
|
|
|
+let disable_al =
|
|
|
+ basic
|
|
|
+ ~summary:("Disable auto-launch, you may set OC_DISABLE variable too.")
|
|
|
+
|
|
|
+ Spec.(
|
|
|
+ empty
|
|
|
+ +> shared_params
|
|
|
+ )
|
|
|
+ (fun _ () ->
|
|
|
+ Tmp_file.set_disable true
|
|
|
+ )
|
|
|
+;;
|
|
|
+
|
|
|
(* Import from older version *)
|
|
|
let import =
|
|
|
basic
|
|
@@ -365,7 +393,7 @@ let run ~version ~build_info () =
|
|
|
[ ("run", default) ; ("licence", licence) ; ("add", add) ; ("edit", edit)
|
|
|
; ("list", list) ; ("cleanup", clean) ; ("delete", delete)
|
|
|
; ("state", state) ; ( "reset", reset) ; ( "reset-all", reset_all)
|
|
|
- ; ( "import", import ) ]
|
|
|
+ ; ( "import", import ) ; ("enable", enable_al) ; ("disable", disable_al) ]
|
|
|
|> run ~version ~build_info
|
|
|
in
|
|
|
|