import Lake
open Lake DSL

package scripts

/--
Display a greeting

USAGE:
  lake run greet [-h] [-- name]

Greet the entity with the given name. Otherwise, greet the whole world.
-/
script greet (args) do
  if h : 0 < args.length then
    IO.println s!"Hello, {args.get 0 h}!"
  else
    IO.println "Hello, world!"
  return 0
