Example#
- class graftkit.Example[source]#
Bases:
FrozenModelA command line that runs a command, shown in
--helpand--describe.The app checks every example against the command’s parser when it is built, so an example that no longer parses fails at once instead of misleading its reader.
- Attributes:
- argvtuple[str, …]
The arguments after the program and command names, one string each, e.g.
("--name", "billing").- saysstr
What the example does, in one sentence.
Methods
shell(command_line)Return the example as a shell command line.