Skip to main content

parse_toggle

Function parse_toggle 

Source
pub fn parse_toggle(action: &str) -> Result<Toggle>
Expand description

Resolve the sub-action word users actually type.

install / uninstall are what this tool’s own output and its documentation have always called these operations, and on / off is the obvious guess; each pair means the same thing as enable / disable, so all of them are accepted.

Anything else is an error rather than a fall-through to status. Silently printing status for devp config daemon enabel looks like it worked and leaves the daemon uninstalled.