cli2 Python API Documentation¶
Command¶
Group¶
-
class
cli2.group.
Group
(name=None, doc=None, color=None, posix=False, outfile=None, cmdclass=None, log=True)[source]¶ Represents a group of named commands.
Argument¶
-
class
cli2.argument.
Argument
(cmd, param, doc=None, color=None, **kwargs)[source]¶ Class representing a bound parameter and command line argument.
-
accepts
¶ Return True if this argument still accepts values to bind.
-
iskw
¶ Return True if this argument is not positional.
-
value
¶ Return the value bound to this argument.
-