mosaicmpi.cli.NullableInt

Contents

mosaicmpi.cli.NullableInt#

class mosaicmpi.cli.NullableInt#

Attributes

Methods

convert(value, param, ctx)

Convert the value to the correct type.

fail(message[, param, ctx])

Helper method to fail with an invalid value message.

get_metavar(param, ctx)

Returns the metavar default for this param if it provides one.

get_missing_message(param, ctx)

Optionally might return extra information about a missing parameter.

shell_complete(ctx, param, incomplete)

Return a list of CompletionItem objects for the incomplete value.

split_envvar_value(rv)

Given a value from an environment variable this splits it up into small chunks depending on the defined envvar list splitter.

to_info_dict()

Gather information that could be useful for a tool generating user-facing documentation.