diff --git a/crates/nu-command/src/core_commands/register.rs b/crates/nu-command/src/core_commands/register.rs index bc9829a9c..b80610286 100644 --- a/crates/nu-command/src/core_commands/register.rs +++ b/crates/nu-command/src/core_commands/register.rs @@ -55,12 +55,12 @@ impl Command for Register { vec![ Example { description: "Register `nu_plugin_query` plugin from ~/.cargo/bin/ dir", - example: r#"register -e capnp ~/.cargo/bin/nu_plugin_query"#, + example: r#"register -e json ~/.cargo/bin/nu_plugin_query"#, result: None, }, Example { description: "Register `nu_plugin_query` plugin from `nu -c`(plugin will be available in that nu session only)", - example: r#"let plugin = ((which nu).path.0 | path dirname | path join 'nu_plugin_query'); nu -c $'register -e capnp ($plugin); version'"#, + example: r#"let plugin = ((which nu).path.0 | path dirname | path join 'nu_plugin_query'); nu -c $'register -e json ($plugin); version'"#, result: None, }, ]