Skip to content
This repository was archived by the owner on Mar 31, 2022. It is now read-only.

argparser API

MultHub or something edited this page Jun 7, 2019 · 2 revisions

argparser

  • parse(rawargs:table, opts:[table, see section opts]) -> parsedArgs:table, extraArgs:table, foundInvalid:table - parses command-line arguments
    • parsedArgs: table with optionName = value pairs
    • extraArgs: file names, etc.
    • foundInvalid: all invalid args

opts

{
    optionName = {shortOpt, longOpt[, default = <default value>]},
    ...
}

some docs

Clone this wiki locally