Positional

Positional

class Positional[source]

Bases: enum.Enum

Describes the positional behavior of a parameter

Attributes

Note: attributes inherited from parent classes are not shown here, if any

ONCE

Eats a single positional value

ZERO_OR_MORE

Eats as many positional values as possible

ONE_OR_MORE

Eats as many positional values as possible, but at least one

Methods

should_be_last

Returns whether a positional parameter should be the last one

List of members of Positional

ONCE = 1

Eats a single positional value

ZERO_OR_MORE = 2

Eats as many positional values as possible

ONE_OR_MORE = 3

Eats as many positional values as possible, but at least one

should_be_last()[source]

Returns whether a positional parameter should be the last one

Return type

bool