ShellCommandWriteAssemblyCommandList Method (TextWriter, Assembly) |
Namespace: Ookii.CommandLine
Exception | Condition |
---|---|
ArgumentNullException | writer or assembly is . |
This method writes a list of all shell command names and their descriptions to writer.
A command's name is retrieved from its ShellCommandAttribute attribute, and the description is retrieved from its DescriptionAttribute attribute.
If writer is an instance of the LineWrappingTextWriter class, the Indent property will be set to a value appropriate for the formatting of the command list, and indenting will be reset before each command. Indenting will not be used if the MaximumLineLength is less than 30.