Zafu/Cli/Argsprivate package
source code:
public dependencies: Zafu/Abstract/Applicative,
Zafu/Cli/Args/Types, Zafu/Collection/HashMap,
Zafu/Collection/NonEmptyChain,
Zafu/Collection/NonEmptyList,
Zafu/Control/Result,
Zafu/Text/Parse/Types,
Zafu/Text/Pretty
allow_attached, allow_equals, allow_separate, and_then_value, applicative_Args, arg_info, bool_value, clusterable, command, count, custom_name, default_help_config,
default_parse_config,
enum_value, example, failure_doc, flag, flag_value, float_value, help_doc, hidden, int_value, long, map, map2, map_value, one_or_more, option, option_optional_value,
optional, or_else, parse, positional, positional_optional,
primitive, product, product_left, product_right, pure, rest, short, string_value, subcommands, validate, value_from_fn, value_from_parse, with_aliases, with_default, with_default_doc, with_example, with_group, with_group_docs, with_help, with_help_flag, with_metavar, with_scope, with_version_flag, zero_or_moreallow_attachedreferences: Zafu/Cli/Args/Types::Spelling
def allow_attached(spelling: Zafu/Cli/Args/Types::Spelling) -> Zafu/Cli/Args/Types::Spelling
allow_equalsreferences: Zafu/Cli/Args/Types::Spelling
def allow_equals(spelling: Zafu/Cli/Args/Types::Spelling) -> Zafu/Cli/Args/Types::Spelling
allow_separatereferences: Zafu/Cli/Args/Types::Spelling
def allow_separate(spelling: Zafu/Cli/Args/Types::Spelling) -> Zafu/Cli/Args/Types::Spelling
and_then_valuereferences: Zafu/Cli/Args/Types::ValueParser,
Zafu/Control/Result::Result,
Zafu/Text/Pretty::Doc
def and_then_value[a, b](
value_parser: Zafu/Cli/Args/Types::ValueParser[a],
fn: a -> Zafu/Control/Result::Result[Zafu/Text/Pretty::Doc, b]
) -> Zafu/Cli/Args/Types::ValueParser[b]
applicative_Argsreferences: Zafu/Abstract/Applicative::Applicative,
Zafu/Cli/Args/Types::Args
applicative_Args: Zafu/Abstract/Applicative::Applicative[Zafu/Cli/Args/Types::Args]
arg_inforeferences: Zafu/Cli/Args/Types::ArgInfo
arg_info: Zafu/Cli/Args/Types::ArgInfo
bool_valuereferences: Bool, Zafu/Cli/Args/Types::ValueParser,
Zafu/Text/Pretty::Doc
def bool_value(metavar: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::ValueParser[Bool]
clusterablereferences: Zafu/Cli/Args/Types::Spelling
def clusterable(spelling: Zafu/Cli/Args/Types::Spelling) -> Zafu/Cli/Args/Types::Spelling
commandreferences: String, Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::Command
def command[a](name: String, args: Zafu/Cli/Args/Types::Args[a]) -> Zafu/Cli/Args/Types::Command[a]
countreferences: Int, Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::Spelling,
Zafu/Collection/NonEmptyList::NonEmptyList
def count(
spellings: Zafu/Collection/NonEmptyList::NonEmptyList[Zafu/Cli/Args/Types::Spelling],
info: Zafu/Cli/Args/Types::ArgInfo
) -> Zafu/Cli/Args/Types::Args[Int]
custom_namereferences: String, Zafu/Cli/Args/Types::Spelling
def custom_name(prefix: String, name: String) -> Zafu/Cli/Args/Types::Spelling
default_help_configreferences: Zafu/Cli/Args/Types::HelpConfig
default_help_config: Zafu/Cli/Args/Types::HelpConfig
default_parse_configreferences: Zafu/Cli/Args/Types::ParseConfig
default_parse_config: Zafu/Cli/Args/Types::ParseConfig
enum_valuereferences: String, Tuple2, Zafu/Cli/Args/Types::ValueParser,
Zafu/Collection/NonEmptyList::NonEmptyList,
Zafu/Text/Pretty::Doc
def enum_value[a
](cases: Zafu/Collection/NonEmptyList::NonEmptyList[(String, a)], metavar: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::ValueParser[a]
examplereferences: Zafu/Cli/Args/Types::Command,
Zafu/Text/Pretty::Doc
def example[a
](cmd: Zafu/Cli/Args/Types::Command[a], doc: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::Command[a]
failure_docreferences: Zafu/Cli/Args/Types::CliError,
Zafu/Cli/Args/Types::Command,
Zafu/Cli/Args/Types::HelpConfig,
Zafu/Collection/NonEmptyChain::NonEmptyChain,
Zafu/Text/Pretty::Doc
def failure_doc[a](
config: Zafu/Cli/Args/Types::HelpConfig,
command: Zafu/Cli/Args/Types::Command[a],
errors: Zafu/Collection/NonEmptyChain::NonEmptyChain[Zafu/Cli/Args/Types::CliError]
) -> Zafu/Text/Pretty::Doc
flagreferences: Bool, Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::Spelling,
Zafu/Collection/NonEmptyList::NonEmptyList
def flag(
spellings: Zafu/Collection/NonEmptyList::NonEmptyList[Zafu/Cli/Args/Types::Spelling],
info: Zafu/Cli/Args/Types::ArgInfo
) -> Zafu/Cli/Args/Types::Args[Bool]
flag_valuereferences: Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::Spelling,
Zafu/Collection/NonEmptyList::NonEmptyList
def flag_value[a](
spellings: Zafu/Collection/NonEmptyList::NonEmptyList[Zafu/Cli/Args/Types::Spelling],
value: a,
info: Zafu/Cli/Args/Types::ArgInfo
) -> Zafu/Cli/Args/Types::Args[a]
float_valuereferences: Float64,
Zafu/Cli/Args/Types::ValueParser,
Zafu/Text/Pretty::Doc
def float_value(metavar: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::ValueParser[Float64]
help_docreferences: List, String, Zafu/Cli/Args/Types::Command,
Zafu/Cli/Args/Types::HelpConfig,
Zafu/Text/Pretty::Doc
def help_doc[a](
config: Zafu/Cli/Args/Types::HelpConfig,
command: Zafu/Cli/Args/Types::Command[a],
command_path: List[String]
) -> Zafu/Text/Pretty::Doc
hiddenreferences: Zafu/Cli/Args/Types::Args
def hidden[a](args: Zafu/Cli/Args/Types::Args[a]) -> Zafu/Cli/Args/Types::Args[a]
int_valuereferences: Int, Zafu/Cli/Args/Types::ValueParser,
Zafu/Text/Pretty::Doc
def int_value(metavar: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::ValueParser[Int]
longreferences: String, Zafu/Cli/Args/Types::Spelling
def long(name: String) -> Zafu/Cli/Args/Types::Spelling
mapreferences: Zafu/Cli/Args/Types::Args
def map[a, b](args: Zafu/Cli/Args/Types::Args[a], fn: a -> b) -> Zafu/Cli/Args/Types::Args[b]
map2references: Zafu/Cli/Args/Types::Args
def map2[a,
b,
c
](left: Zafu/Cli/Args/Types::Args[a], right: Zafu/Cli/Args/Types::Args[b], fn: (a, b) -> c) -> Zafu/Cli/Args/Types::Args[c]
map_valuereferences: Zafu/Cli/Args/Types::ValueParser
def map_value[a,
b
](value_parser: Zafu/Cli/Args/Types::ValueParser[a], fn: a -> b) -> Zafu/Cli/Args/Types::ValueParser[b]
one_or_morereferences: Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::Spelling,
Zafu/Cli/Args/Types::ValueParser,
Zafu/Collection/NonEmptyList::NonEmptyList
def one_or_more[a](
value_parser: Zafu/Cli/Args/Types::ValueParser[a],
spellings: Zafu/Collection/NonEmptyList::NonEmptyList[Zafu/Cli/Args/Types::Spelling],
info: Zafu/Cli/Args/Types::ArgInfo
) -> Zafu/Cli/Args/Types::Args[Zafu/Collection/NonEmptyList::NonEmptyList[a]]
optionreferences: Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::Spelling,
Zafu/Cli/Args/Types::ValueParser,
Zafu/Collection/NonEmptyList::NonEmptyList
def option[a](
value_parser: Zafu/Cli/Args/Types::ValueParser[a],
spellings: Zafu/Collection/NonEmptyList::NonEmptyList[Zafu/Cli/Args/Types::Spelling],
info: Zafu/Cli/Args/Types::ArgInfo
) -> Zafu/Cli/Args/Types::Args[a]
option_optional_valuereferences: Option, Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::Spelling,
Zafu/Cli/Args/Types::ValueParser,
Zafu/Collection/NonEmptyList::NonEmptyList
def option_optional_value[a](
value_parser: Zafu/Cli/Args/Types::ValueParser[a],
spellings: Zafu/Collection/NonEmptyList::NonEmptyList[Zafu/Cli/Args/Types::Spelling],
info: Zafu/Cli/Args/Types::ArgInfo
) -> Zafu/Cli/Args/Types::Args[Option[a]]
optionalreferences: Option, Zafu/Cli/Args/Types::Args
def optional[a](args: Zafu/Cli/Args/Types::Args[a]) -> Zafu/Cli/Args/Types::Args[Option[a]]
or_elsereferences: Zafu/Cli/Args/Types::Args
def or_else[a
](left: Zafu/Cli/Args/Types::Args[a], right: Zafu/Cli/Args/Types::Args[a]) -> Zafu/Cli/Args/Types::Args[a]
parsereferences: List, String, Zafu/Cli/Args/Types::Command,
Zafu/Cli/Args/Types::ParseConfig,
Zafu/Cli/Args/Types::ParseResult
def parse[a](
config: Zafu/Cli/Args/Types::ParseConfig,
command: Zafu/Cli/Args/Types::Command[a],
argv: List[String]
) -> Zafu/Cli/Args/Types::ParseResult[a]
positionalreferences: Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::ValueParser
def positional[a
](value_parser: Zafu/Cli/Args/Types::ValueParser[a], info: Zafu/Cli/Args/Types::ArgInfo) -> Zafu/Cli/Args/Types::Args[a]
positional_optionalreferences: Option, Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::ValueParser
def positional_optional[a
](value_parser: Zafu/Cli/Args/Types::ValueParser[a], info: Zafu/Cli/Args/Types::ArgInfo) -> Zafu/Cli/Args/Types::Args[Option[a]]
primitivereferences: Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::PrimitiveSpec
def primitive[a
](spec: Zafu/Cli/Args/Types::PrimitiveSpec[a], info: Zafu/Cli/Args/Types::ArgInfo) -> Zafu/Cli/Args/Types::Args[a]
productreferences: Tuple2, Zafu/Cli/Args/Types::Args
def product[a,
b
](left: Zafu/Cli/Args/Types::Args[a], right: Zafu/Cli/Args/Types::Args[b]) -> Zafu/Cli/Args/Types::Args[(a, b)]
product_leftreferences: Zafu/Cli/Args/Types::Args
def product_left[a,
b
](left: Zafu/Cli/Args/Types::Args[a], right: Zafu/Cli/Args/Types::Args[b]) -> Zafu/Cli/Args/Types::Args[a]
product_rightreferences: Zafu/Cli/Args/Types::Args
def product_right[a,
b
](left: Zafu/Cli/Args/Types::Args[a], right: Zafu/Cli/Args/Types::Args[b]) -> Zafu/Cli/Args/Types::Args[b]
purereferences: Zafu/Cli/Args/Types::Args
def pure[a](value: a) -> Zafu/Cli/Args/Types::Args[a]
restreferences: List, Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::ValueParser
def rest[a
](value_parser: Zafu/Cli/Args/Types::ValueParser[a], info: Zafu/Cli/Args/Types::ArgInfo) -> Zafu/Cli/Args/Types::Args[List[a]]
shortreferences: Char, Zafu/Cli/Args/Types::Spelling
def short(ch: Char) -> Zafu/Cli/Args/Types::Spelling
string_valuereferences: String, Zafu/Cli/Args/Types::ValueParser,
Zafu/Text/Pretty::Doc
def string_value(metavar: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::ValueParser[String]
subcommandsreferences: Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::Command,
Zafu/Collection/NonEmptyList::NonEmptyList
def subcommands[a](
commands: Zafu/Collection/NonEmptyList::NonEmptyList[Zafu/Cli/Args/Types::Command[a]],
info: Zafu/Cli/Args/Types::ArgInfo
) -> Zafu/Cli/Args/Types::Args[a]
validatereferences: Zafu/Cli/Args/Types::Args,
Zafu/Control/Result::Result,
Zafu/Text/Pretty::Doc
def validate[a,
b
](args: Zafu/Cli/Args/Types::Args[a], fn: a -> Zafu/Control/Result::Result[Zafu/Text/Pretty::Doc, b]) -> Zafu/Cli/Args/Types::Args[b]
value_from_fnreferences: String, Zafu/Cli/Args/Types::ValueParser,
Zafu/Control/Result::Result,
Zafu/Text/Pretty::Doc
def value_from_fn[a](
parse_fn: String -> Zafu/Control/Result::Result[Zafu/Text/Pretty::Doc, a],
metavar: Zafu/Text/Pretty::Doc
) -> Zafu/Cli/Args/Types::ValueParser[a]
value_from_parsereferences: Zafu/Cli/Args/Types::ValueParser,
Zafu/Text/Parse/Types::Parser,
Zafu/Text/Pretty::Doc
def value_from_parse[a
](parser: Zafu/Text/Parse/Types::Parser[a], metavar: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::ValueParser[a]
with_aliasesreferences: List, String, Zafu/Cli/Args/Types::Command
def with_aliases[a
](cmd: Zafu/Cli/Args/Types::Command[a], aliases: List[String]) -> Zafu/Cli/Args/Types::Command[a]
with_defaultreferences: Zafu/Cli/Args/Types::Args,
Zafu/Text/Pretty::Doc
def with_default[a
](args: Zafu/Cli/Args/Types::Args[a], value: a, rendered_default: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::Args[a]
with_default_docreferences: Zafu/Cli/Args/Types::Args,
Zafu/Text/Pretty::Doc
def with_default_doc[a
](args: Zafu/Cli/Args/Types::Args[a], doc: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::Args[a]
with_examplereferences: Zafu/Cli/Args/Types::Args,
Zafu/Text/Pretty::Doc
def with_example[a
](args: Zafu/Cli/Args/Types::Args[a], doc: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::Args[a]
with_groupreferences: String, Zafu/Cli/Args/Types::Args
def with_group[a
](args: Zafu/Cli/Args/Types::Args[a], group_id: String) -> Zafu/Cli/Args/Types::Args[a]
with_group_docsreferences: String, Zafu/Cli/Args/Types::Args,
Zafu/Collection/HashMap::HashMap,
Zafu/Text/Pretty::Doc
def with_group_docs[a](
args: Zafu/Cli/Args/Types::Args[a],
group_docs: Zafu/Collection/HashMap::HashMap[String, Zafu/Text/Pretty::Doc]
) -> Zafu/Cli/Args/Types::Args[a]
with_helpreferences: Zafu/Cli/Args/Types::Args,
Zafu/Text/Pretty::Doc
def with_help[a
](args: Zafu/Cli/Args/Types::Args[a], doc: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::Args[a]
with_help_flagreferences: Zafu/Cli/Args/Types::Command
def with_help_flag[a](cmd: Zafu/Cli/Args/Types::Command[a]) -> Zafu/Cli/Args/Types::Command[a]
with_metavarreferences: Zafu/Cli/Args/Types::Args,
Zafu/Text/Pretty::Doc
def with_metavar[a
](args: Zafu/Cli/Args/Types::Args[a], doc: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::Args[a]
with_scopereferences: Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::Scope
def with_scope[a
](args: Zafu/Cli/Args/Types::Args[a], scope: Zafu/Cli/Args/Types::Scope) -> Zafu/Cli/Args/Types::Args[a]
with_version_flagreferences: Zafu/Cli/Args/Types::Command,
Zafu/Text/Pretty::Doc
def with_version_flag[a
](cmd: Zafu/Cli/Args/Types::Command[a], version_doc: Zafu/Text/Pretty::Doc) -> Zafu/Cli/Args/Types::Command[a]
zero_or_morereferences: List, Zafu/Cli/Args/Types::ArgInfo,
Zafu/Cli/Args/Types::Args,
Zafu/Cli/Args/Types::Spelling,
Zafu/Cli/Args/Types::ValueParser,
Zafu/Collection/NonEmptyList::NonEmptyList
def zero_or_more[a](
value_parser: Zafu/Cli/Args/Types::ValueParser[a],
spellings: Zafu/Collection/NonEmptyList::NonEmptyList[Zafu/Cli/Args/Types::Spelling],
info: Zafu/Cli/Args/Types::ArgInfo
) -> Zafu/Cli/Args/Types::Args[List[a]]