You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nu::parser::unknown_flag errors could just list the flags instead of saying "use <command> --help for a list of flags" #6773
〉ls -r js
Error: nu::parser::unknown_flag (link)
× The `ls` command doesn't have flag `-r`.
╭─[entry #179:1:1]
1 │ ls -r js
· ┬
· ╰── unknown flag
╰────
help: use ls --help for a list of flags
I'm pretty sure Nu's commands do not have more than 8 flags, and as such, I feel like simply listing the flags for the attempted command after this error (taken directly from help) wouldn't be too major an imposition.
changed the title [-]`nu::parser::unknown_flag` errors could just list the flags instead of saying `use ` <command> `--help for a list of flags`[/-][+]`nu::parser::unknown_flag` errors could just list the flags instead of saying "`use ` <command> `--help for a list of flags`"[/+]on Oct 16, 2022
Activity
[-]`nu::parser::unknown_flag` errors could just list the flags instead of saying `use ` <command> `--help for a list of flags`[/-][+]`nu::parser::unknown_flag` errors could just list the flags instead of saying "`use ` <command> `--help for a list of flags`"[/+]let `UnknownFlag` error list out available flags (#7443)