### Bug report form - [x] I have done a basic search of the issue tracker to find any existing issues that are similar. - [x] 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 ``` 2. 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 | 7b7df4aa68e957cf38b9d8157c35fa7523f44a6d | | 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
Mrfiregem commentedon Jun 22, 2026
Same for
--error-style, it looks likerespect table mode passed on cli for scripts and repl (#18446)