Skip to content

respect table mode passed on cli for scripts and repl - #18446

Merged
fdncred merged 1 commit into
nushell:mainfrom
fdncred:respect_cli_table_mode
Jun 23, 2026
Merged

fdncred merged 1 commit into
nushell:mainfrom
fdncred:respect_cli_table_mode

Conversation

@fdncred

@fdncred fdncred commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Respect the table mode passed in on the cli when running scripts. Before it would ignore table mode passed like this nu -m "none" script.nu.

User-facing changes (Release notes)

Fixed table mode handling from CLI arguments

Respect the table mode when passed in on the cli when running script so you can do things like this.

❯ '1..3 | each { { number: $in, comment: "hello" } }' | save script.nu
❯ nu -m "none" script.nu
 #   number   comment
 0        1   hello
 1        2   hello
 2        3   hello

Additional notes

closes #18445

@fdncred fdncred added notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes labels Jun 22, 2026
@fdncred
fdncred merged commit 4c0c6ca into nushell:main Jun 23, 2026
18 checks passed
@fdncred
fdncred deleted the respect_cli_table_mode branch June 23, 2026 00:00
@github-actions github-actions Bot added this to the v0.114.0 milestone Jun 23, 2026
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.

--table-mode doesn't affect scripts

1 participant