Skip to content

fix nu --plugins handling - #18500

Merged
fdncred merged 2 commits into
nushell:mainfrom
fdncred:fix_plugins_nu_parameter
Jun 30, 2026
Merged

fdncred merged 2 commits into
nushell:mainfrom
fdncred:fix_plugins_nu_parameter

Conversation

@fdncred

@fdncred fdncred commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

A bug was reported on Discord that disallowed the --plugins from working. The problem was, when using with a shebang this would happen nu --plugins '/usr/share/nutext/nu_plugin_nutext' /path/to/rhino-pkg and then nushell would puke because the cli parsing thinks /path/to/rhino-pkg is another plugin but it's named wrong, which is wrong of course.

The fix is to allow only 1 item to be passed as a plugin instead of many. This is what is acceptible now.

nu --plugins /path/to/nu_plugin_one --plugins /path/to/nu_plugin_two # mutliple --plugins params
nu --plugins '[/path/to/nu_plugin_one, /path/to/nu_plugin_two]' # comma separation
nu --plugins '[/path/to/nu_plugin_one /path/to/nu_plugin_two]' # no comma separation
nu --plugins '["/path/to plugin/nu_plugin_one", "/path/to plugin/nu_plugin_two"]' # quoted paths, with or without commas

User-facing changes (Release notes)

Fixed nu --plugins handling

The nushell cli parsing now supports the --plugins parameter in these variations

nu --plugins /path/to/nu_plugin_one --plugins /path/to/nu_plugin_two # mutliple --plugins params
nu --plugins '[/path/to/nu_plugin_one, /path/to/nu_plugin_two]' # comma separation
nu --plugins '[/path/to/nu_plugin_one /path/to/nu_plugin_two]' # no comma separation
nu --plugins '["/path/to plugin/nu_plugin_one", "/path/to plugin/nu_plugin_two"]' # quoted paths, with or without commas

Additional notes

@fdncred fdncred added notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes labels Jun 30, 2026

@Elsie19 Elsie19 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me!

@fdncred
fdncred merged commit 583457d into nushell:main Jun 30, 2026
17 checks passed
@fdncred
fdncred deleted the fix_plugins_nu_parameter branch June 30, 2026 14:11
@github-actions github-actions Bot added this to the v0.114.0 milestone Jun 30, 2026
@YPares

YPares commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

@fdncred Hi! Maybe this isn't a practical demand but when the lib/plugins flags of the nu executable are changed in a backward-incompatible manner, is it possible to give me a heads up? That's because https://github.com/ypares/nushellWith depends on them.

YPares pushed a commit to YPares/nushellWith that referenced this pull request Jul 15, 2026
YPares pushed a commit to YPares/nushellWith that referenced this pull request Jul 15, 2026
@fdncred

fdncred commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor Author

ya, probably not practical but I will try and remember.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants