GitHub

CommandLineError

API reference for CommandLineError.

A command line or a template could not be built; reason says why.

  • NulCharacter: an argument to quote or join contains NUL.
  • InvalidArgument: the format cannot carry an argument (a Windows program name with ", or --% for PowerShell).
  • InvalidEscape: template text ends with a backslash escaping nothing.
  • UnterminatedQuote: a quote in a template is not closed.
  • UnsupportedSyntax: template text needs a shell, or a list value is not a separate argument.

Attributes

AttributeTypeDescription
reasonReason
messagestr

Functions

__init__

__init__(reason, message) -> None
ParameterTypeDescription
reasonReason
messagestr