Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export --help not work #4653

Closed
hustcer opened this issue Feb 26, 2022 · 4 comments · Fixed by #5332
Closed

export --help not work #4653

hustcer opened this issue Feb 26, 2022 · 4 comments · Fixed by #5332
Labels
🐛 bug Something isn't working
Milestone

Comments

@hustcer
Copy link
Contributor

hustcer commented Feb 26, 2022

Describe the bug

export --help not work

How to reproduce

$> export --help
Error: nu::parser::unexpected_keyword (link)

  × Unexpected keyword.
   ╭─[entry #27:1:1]
 1 │ export --help
   · ───┬──
   ·    ╰── unexpected export
   ╰────
  help: 'export' keyword is allowed only in a module.

Expected behavior

Output should be the same as help export

Screenshots

No response

Configuration

key value
version 0.59.0
branch main
short_commit 11bc056
commit_hash 11bc056
commit_date 2022-02-26 09:19:19 +00:00
build_os macos-x86_64
rust_version rustc 1.59.0 (9d1b2106e 2022-02-23)
rust_channel stable-x86_64-apple-darwin
cargo_version cargo 1.59.0 (49d8809dc 2022-02-10)
pkg_version 0.59.0
build_time 2022-02-26 18:34:28 +08:00
build_rust_channel release
features dataframe, default, trash, which, zip
installed_plugins query, query json, query web, query xml

Additional context

No response

@fdncred
Copy link
Collaborator

fdncred commented Feb 26, 2022

it looks like it's coming from UnexpectedKeyword

@fdncred fdncred added the 🐛 bug Something isn't working label Feb 26, 2022
@hustcer hustcer added this to the v0.61.0 milestone Mar 10, 2022
@hustcer hustcer removed this from the v0.61.0 milestone Mar 19, 2022
@nyurik
Copy link

nyurik commented Mar 25, 2022

same with alias --help

❯ alias --help
Error: nu::parser::incorrect_value (link)

  × Incorrect value
   ╭─[entry #10:1:1]
 1 │ alias --help
   · ──┬──
   ·   ╰── unexpected Incomplete alias
   ╰────
  help: incomplete alias

@fdncred
Copy link
Collaborator

fdncred commented Mar 25, 2022

try help alias and help export

@nyurik
Copy link

nyurik commented Mar 26, 2022

try help alias and help export

Yes, those work, and they say that --help is a valid parameter :)

@hustcer hustcer added this to the v0.62.0 milestone Apr 9, 2022
@hustcer hustcer added the 0.62 label Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants