lean4-htt/Lake.lean
2021-08-04 14:07:28 -04:00

19 lines
596 B
Text

/-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich, Mac Malone
-/
import Lake.Cli
import Lake.SearchPath
-- API file not imported elsewhere; imported here to force build
import Lake.BuildTargets
def main (args : List String) : IO UInt32 := do
try
Lake.setupLeanSearchPath
let (cmd, outerArgs, innerArgs) ← Lake.splitCmdlineArgs args
Lake.cli cmd outerArgs innerArgs
pure 0
catch e =>
IO.eprintln e -- avoid "uncaught exception: ..."
pure 1