File: .lake/packages/lean4/src/lean/lake/Lake/Util/Cli.lean

full_name: Lake.ArgList
code: def ArgList 
goal: Type

full_name: Lake.ArgList.mk
code: @[inline] def ArgList.mk (args : List String) : ArgList 
goal: Lake.ArgList

full_name: Lake.ArgsT
code: abbrev ArgsT 
goal: Type u_1

full_name: Lake.ArgsT.run
code: @[inline] def ArgsT.run (args : List String) (self : ArgsT m α) : m (α × List String) 
goal: m (α × List String)

full_name: Lake.ArgsT.run'
code: @[inline] def ArgsT.run' [Functor m] (args : List String) (self : ArgsT m α) : m α 
goal: m α

full_name: Lake.OptionHandlers.long
code: structure OptionHandlers (m : Type u → Type v) (α : Type u) where
  /-- Process a long option (ex. `--long` or `"--long foo bar"`). -/
  long : String → m α
  /-- Process a short option (ex. `-x` or `--`). -/
  short : Char → m α
  /-- Process a long short option (ex. `-long`, `-xarg`, `-xyz`). -/
  longShort : String → m α
goal: String → m α

full_name: Lake.OptionHandlers
code: structure OptionHandlers (m : Type u → Type v) (α : Type u) where
  /-- Process a long option (ex. `--long` or `"--long foo bar"`). -/
  long : String → m α
  /-- Process a short option (ex. `-x` or `--`). -/
  short : Char → m α
  /-- Process a long short option (ex. `-long`, `-xarg`, `-xyz`). -/
  longShort : String → m α
goal: Type v

full_name: Lake.OptionHandlers.longShort
code: structure OptionHandlers (m : Type u → Type v) (α : Type u) where
  /-- Process a long option (ex. `--long` or `"--long foo bar"`). -/
  long : String → m α
  /-- Process a short option (ex. `-x` or `--`). -/
  short : Char → m α
  /-- Process a long short option (ex. `-long`, `-xarg`, `-xyz`). -/
  longShort : String → m α
goal: String → m α

full_name: Lake.OptionHandlers.short
code: structure OptionHandlers (m : Type u → Type v) (α : Type u) where
  /-- Process a long option (ex. `--long` or `"--long foo bar"`). -/
  long : String → m α
  /-- Process a short option (ex. `-x` or `--`). -/
  short : Char → m α
  /-- Process a long short option (ex. `-long`, `-xarg`, `-xyz`). -/
  longShort : String → m α
goal: Char → m α

full_name: Lake.getArgs
code: /-- Get the remaining argument list. -/
@[inline] def getArgs : m (List String) 
goal: m (List String)

full_name: Lake.setArgs
code: /-- Replace the argument list. -/
@[inline] def setArgs (args : List String) : m PUnit 
goal: m PUnit

full_name: Lake.takeArg?
code: /-- Take the head of the remaining argument list (or none if empty). -/
@[inline] def takeArg? : m (Option String) 
goal: m (Option String)

full_name: Lake.takeArgD
code: /-- Take the head of the remaining argument list (or `default` if none). -/
@[inline] def takeArgD (default : String) : m String 
goal: m String

full_name: Lake.takeArgs
code: /-- Take the remaining argument list, leaving only an empty list. -/
@[inline] def takeArgs : m (List String) 
goal: m (List String)

full_name: Lake.consArg
code: /-- Add a string to the head of the remaining argument list. -/
@[inline] def consArg (arg : String) : m PUnit 
goal: m PUnit

full_name: Lake.shortOptionWithEq
code: /-- Process a short option of the form `-x=arg`. -/
@[inline] def shortOptionWithEq (handle : Char → m α) (opt : String) : m α 
goal: m α

full_name: Lake.shortOptionWithSpace
code: /-- Process a short option of the form `"-x arg"`. -/
@[inline] def shortOptionWithSpace (handle : Char → m α) (opt : String) : m α 
goal: m α

full_name: Lake.shortOptionWithArg
code: /-- Process a short option of the form `-xarg`. -/
@[inline] def shortOptionWithArg (handle : Char → m α) (opt : String) : m α 
goal: m α

full_name: Lake.multiShortOption
code: /-- Process a multiple short options grouped together (ex. `-xyz` as `x`, `y`, `z`). -/
@[inline] def multiShortOption (handle : Char → m PUnit) (opt : String) : m PUnit 
goal: m PUnit

full_name: Lake.longOptionOrSpace
code: /-- Splits a long option of the form `"--long foo bar"` into `--long` and `"foo bar"`. -/
@[inline] def longOptionOrSpace (handle : String → m α) (opt : String) : m α 
goal: m α

full_name: Lake.longOptionOrEq
code: /-- Splits a long option of the form `--long=arg` into `--long` and `arg`. -/
@[inline] def longOptionOrEq (handle : String → m α) (opt : String) : m α 
goal: m α

full_name: Lake.longOption
code: /-- Process a long option  of the form `--long`, `--long=arg`, `"--long arg"`. -/
@[inline] def longOption (handle : String → m α) : String → m α 
goal: String → m α

full_name: Lake.shortOption
code: /-- Process a short option of the form `-x`, `-x=arg`, `-x arg`, or `-long`. -/
@[inline] def shortOption
(shortHandle : Char → m α) (longHandle : String → m α)
(opt : String) : m α 
goal: m α

full_name: Lake.option
code: /--
Process an option, short or long, using the given handlers.
An option is an argument of length > 1 starting with a dash (`-`).
An option may consume additional elements of the argument list.
-/
@[inline] def option (handlers : OptionHandlers m α) (opt : String) : m α 
goal: m α

full_name: Lake.processLeadingOption
code: /-- Process the head argument of the list using `handle` if it is an option. -/
def processLeadingOption (handle : String → m PUnit) : m PUnit 
goal: m PUnit

full_name: Lake.processLeadingOptions
code: /--
Process the leading options of the remaining argument list.
Consumes empty leading arguments in the argument list.
-/
partial def processLeadingOptions (handle : String → m PUnit) : m PUnit 
goal: m PUnit

full_name: Lake.collectArgs
code: /-- Process every option and collect the remaining arguments into an `Array`. -/
partial def collectArgs (option : String → m PUnit) (args : Array String := #[]) : m (Array String) 
goal: m (Array String)

full_name: Lake.processOptions
code: /-- Process every option in the argument list. -/
@[inline] def processOptions (handle : String → m PUnit) : m PUnit 
goal: m PUnit