@hatch:cli v0.1.1
Clap-style argument parser for Wren command-line tools.
$
hatch add @hatch:cli
Clap-style argument parser for Wren command-line tools.
Arg.new(name)
Arg.name
Arg.shortFlag
Arg.longFlag
Arg.helpText
Arg.takesValue
Arg.isPositional
Arg.isRequired
Arg.defaultVal
Arg.isCount
Arg.short(s)
Arg.long(l)
Arg.help(h)
Arg.value()
Arg.flag()
Arg.count()
Arg.positional()
Arg.required()
Arg.default(v)
Cli.new(name)
Cli.cliName_
Cli.about_
Cli.version_
Cli.args_
Cli.subs_
Cli.about(a)
Cli.version(v)
Cli.arg(a)
Cli.subcommand(c)
Cli.parse(argv)
Cli.consumesNext_(tok)
Cli.parseInto_(matches, argv)
Cli.handleLong_(matches, argv, i)
Cli.handleShort_(matches, argv, i)
Cli.applyArg_(matches, argv, i, a, inlineValue, tokLabel)
Cli.applyDefaults_(matches)
Cli.validateRequired_(matches)
Cli.findLong_(name)
Cli.findShort_(name)
Cli.renderVersion_()
Cli.renderHelp_()
Cli.indexOf_(s, ch)
Cli.padRight_(s, width)
Matches.new()
Matches.subcommand
Matches.error
Matches.helpRequested
Matches.versionRequested
Matches.flags_
Matches.values_
Matches.counts_
Matches.sub_=(v)
Matches.error_
Matches.error_=(v)
Matches.helpRequested_=(v)
Matches.versionRequested_=(v)
Matches.flag(name)
Matches.value(name)
Matches.count(name)