Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 980 Bytes

cmd.rst

File metadata and controls

36 lines (23 loc) · 980 Bytes

cmd2.Cmd

cmd2.Cmd

__init__

continuation_prompt

Use as prompt for multiline commands on the 2nd+ line of input. Default: >.

default_error

The error message displayed when a non-existent command is run. Default: {} is not a recognized command, alias, or macro

help_error

The error message displayed to the user when they request help for a command with no help defined. Default: No help on {}

prompt

The prompt issued to solicit input. Default: (Cmd).

settable

This dictionary contains the name and description of all settings available to users.

Users use the features/builtin_commands:set command to view and modify settings. Settings are stored in instance attributes with the same name as the setting.