Skip to content

--table-mode doesn't affect scripts #18445

Closed

Description

@AceCoderLaura

Bug report form

  • I have done a basic search of the issue tracker to find any existing issues that are similar.
  • I have checked that my version is at least the latest stable release available via my installation method.

Describe the bug

--table-mode/-m affects commands provided via the -c flag but doesn't affect scripts when specified.

How to reproduce

  1. Create a script that outputs a table
~> '1..3 | each { { number: $in, comment: "hello" } }' | save script.nu
  1. Run the script with the -m flag
~> nu -m "none" script.nu
╭───┬────────┬─────────╮
│ # │ number │ comment │
├───┼────────┼─────────┤
│ 0 │      1 │ hello   │
│ 1 │      2 │ hello   │
│ 2 │      3 │ hello   │
╰───┴────────┴─────────╯

Expected behavior

I expected a table with the specified table mode (none), the output should look the same as when ran via the -c flag.

~> nu -c '1..3 | each { { number: $in, comment: "hello" } }' -m "none"
 #   number   comment
 0        1   hello
 1        2   hello
 2        3   hello

Configuration

key value
version 0.113.1
major 0
minor 113
patch 1
branch
commit_hash 7b7df4a
build_os windows-x86_64
build_target x86_64-pc-windows-msvc
rust_version rustc 1.93.1 (01f6ddf75 2026-02-11)
rust_channel 1.93.1-x86_64-pc-windows-msvc
cargo_version cargo 1.93.1 (083ac5135 2025-12-15)
build_time 2026-05-29 22:36:34 +00:00
build_rust_channel release
allocator standard
features default, mcp, network, plugin, rustls-tls, sqlite, trash-support
installed_plugins
experimental_options example=false, reorder-cell-paths=true, pipefail=true, enforce-runtime-annotations=false, native-clip=false, cell-path-types=false

Activity

  1. added
    status:needs-triage
    on Jun 22, 2026
  2. Mrfiregem commented on Jun 22, 2026

    @Mrfiregem
    Contributor

    Same for --error-style, it looks like

  3. added this to the v0.114.0 milestone on Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions