### Describe the bug ``` # qemu.nu def main [kernel: string, --version: string, --arch: string] { } ``` <img width="936" alt="截屏2022-05-05 09 32 07" src="https://user-images.githubusercontent.com/42509521/166852098-e08c77a2-0664-498c-bc74-1e1b961229b0.png"> if I recall correctly, it's ok in 0.61.1 ### How to reproduce described above ### Expected behavior no error report ### Screenshots _No response_ ### Configuration | key | value | | ------------------ | ----------------------------------- | | version | 0.62.0 | | branch | | | tag | | | build_os | macos-aarch64 | | rust_version | rustc 1.60.0 (7737e0b5c 2022-04-04) | | rust_channel | stable-aarch64-apple-darwin | | cargo_version | cargo 1.60.0 (d1fd9fe2c 2022-03-01) | | pkg_version | 0.62.0 | | build_time | 2022-05-04 10:04:15 +08:00 | | build_rust_channel | release | | features | default, trash, which, zip | | installed_plugins | | ### Additional context _No response_
Activity
[-]can't pass flags into main[/-][+]can't pass flags into function[/+]uasi commentedon May 5, 2022
We need to either
nushell/src/main.rs
Line 85 in 96f8691
gipsyh commentedon May 10, 2022
It still not work in my machine.
#5447 (comment)
merelymyself commentedon May 10, 2022
@gipsyh - my bad, I forgot to factor in cases where the function is defined with multiple flags on the same line. I usually define my functions like
which is why I overlooked it. There's an easy fix.
hustcer commentedon May 11, 2022
Seems still not work after #5493 ?
hustcer commentedon May 13, 2022
It's found that
nu b.nu linux --version v5.2works butnu b.nu linux --version=v5.2not work:hustcer commentedon May 13, 2022
@gipsyh You are right, the original issue has been fixed, let's close it in favor of this one: #5532