diff --git a/crates/nu-plugin/src/plugin/mod.rs b/crates/nu-plugin/src/plugin/mod.rs index 340d55e3b91c..c5af681f5eae 100644 --- a/crates/nu-plugin/src/plugin/mod.rs +++ b/crates/nu-plugin/src/plugin/mod.rs @@ -655,6 +655,15 @@ fn print_help(plugin: &impl Plugin, encoder: impl PluginEncoder) { println!("Nushell Plugin"); println!("Encoder: {}", encoder.name()); + println!("Version: {}", plugin.version()); + + // Determine the plugin name + let exe = std::env::current_exe().ok(); + let plugin_name: String = exe + .as_ref() + .map(|stem| stem.to_string_lossy().into_owned()) + .unwrap_or_else(|| "(unknown)".into()); + println!("Plugin file path: {}", plugin_name); let mut help = String::new(); let help_style = HelpStyle::default();