quickie.Arg

class quickie.Arg(*name_or_flags: str, completer: Callable | None = None, **kwargs: Unpack[_ArgparseOptionKwargs])

A wrapper for argparse arguments.

__init__(*name_or_flags: str, completer: Callable | None = None, **kwargs: Unpack[_ArgparseOptionKwargs])

Initialize the argument.

Parameters:
  • name_or_flags – The name or flags of the argument.

  • completer – The completer for the argument.

  • kwargs – The kwargs for the argument.

Methods

__init__(*name_or_flags[, completer])

Initialize the argument.

add(parser)

Setup the argument.

set_completer(action)

Setup the completer for the argument.