Skip to main content

with_configured_node

Function with_configured_node 

Source
pub(crate) fn with_configured_node(args: &[String]) -> Vec<String>
Expand description

Fills in the node URL for a command that takes one and was not given one.

Every command whose spec begins with <api> takes it as its first argument, and an api is always a URL, so “the first argument is not a URL” is an unambiguous test rather than a guess. The set of such commands is read from the surface table rather than listed here, because a second list is a second thing to forget.

An explicit URL always wins: this only ever fills a gap.