diff --git a/crates/nu-command/src/conversions/into/duration.rs b/crates/nu-command/src/conversions/into/duration.rs index 31e2b02ceb..b6459e1466 100644 --- a/crates/nu-command/src/conversions/into/duration.rs +++ b/crates/nu-command/src/conversions/into/duration.rs @@ -36,7 +36,7 @@ impl Command for SubCommand { } fn extra_usage(&self) -> &str { - "into duration does not take leap years into account and every month is calculated with 30 days" + "This command does not take leap years into account, and every month is assumed to have 30 days." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/path/exists.rs b/crates/nu-command/src/path/exists.rs index eb88d13e28..e5dab5ef65 100644 --- a/crates/nu-command/src/path/exists.rs +++ b/crates/nu-command/src/path/exists.rs @@ -38,6 +38,11 @@ impl Command for SubCommand { "Check whether a path exists" } + fn extra_usage(&self) -> &str { + r#"This only checks if it is possible to either `open` or `cd` to the given path. +If you need to distinguish dirs and files, please use `path type`."# + } + fn run( &self, engine_state: &nu_protocol::engine::EngineState, diff --git a/crates/nu-command/src/path/type.rs b/crates/nu-command/src/path/type.rs index c00123b3d3..2a5689a1ba 100644 --- a/crates/nu-command/src/path/type.rs +++ b/crates/nu-command/src/path/type.rs @@ -36,6 +36,11 @@ impl Command for SubCommand { "Get the type of the object a path refers to (e.g., file, dir, symlink)" } + fn extra_usage(&self) -> &str { + r#"This checks the file system to confirm the path's object type. +If nothing is found, an empty string will be returned."# + } + fn run( &self, engine_state: &nu_protocol::engine::EngineState,