check for nh_flake variable
This commit is contained in:
parent
ce7b751c6f
commit
6681fd984f
25
bin/main.ml
25
bin/main.ml
@ -1,13 +1,18 @@
|
||||
open Meat
|
||||
|
||||
let () =
|
||||
if Array.length Sys.argv >= 2 then (
|
||||
match String.lowercase_ascii (Array.get Sys.argv 1) with
|
||||
| "yum" -> yum ()
|
||||
| "cook" -> cook ()
|
||||
| "poke" -> poke ()
|
||||
| "gut" -> gut ()
|
||||
| "look" -> look ()
|
||||
| "fresh" -> fresh ()
|
||||
| _ -> help ()
|
||||
) else help ();
|
||||
match Sys.getenv_opt "NH_FLAKE" with
|
||||
| Some _ ->
|
||||
if Array.length Sys.argv >= 2 then
|
||||
match String.lowercase_ascii (Array.get Sys.argv 1) with
|
||||
| "yum" -> yum ()
|
||||
| "cook" -> cook ()
|
||||
| "poke" -> poke ()
|
||||
| "gut" -> gut ()
|
||||
| "look" -> look ()
|
||||
| "fresh" -> fresh ()
|
||||
| _ -> help ()
|
||||
else help ()
|
||||
| None ->
|
||||
meat_print "NO PATH TO RUNESTONE FOUND!";
|
||||
help ()
|
||||
|
Loading…
Reference in New Issue
Block a user