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

[BUG] Should error with too many arguments #164

Open
kurtlawrence opened this issue Aug 18, 2022 · 0 comments
Open

[BUG] Should error with too many arguments #164

kurtlawrence opened this issue Aug 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kurtlawrence
Copy link
Member

\ 2 | foo 'hasdfg'
┃4
┃>> \ 2 | foo 3
┃4
┃>> foo --help ┃
┃Help: foo
┃--> shell:0 ┃
┃ | ---- Input Type: ---- ┃
┃ | user defined implementation in shell ┃
┃ | def foo (a) { + $a }
┃ | ┃
┃ | Usage: ┃
┃ | => foo a ┃
┃ | ┃
┃ | ---- Input Type: Number ---- ┃
┃ | user defined implementation in shell ┃
┃ | def foo Num (a) { + 2 }
┃ | ┃
┃ | Usage: ┃
┃ | => foo a ┃
┃ ┃
┃>> def foo Num (a) { + 2 } ┃
┃() ┃
┃>> \ 'Hello' | foo ' Jason' ┃
┃Hello Jason ┃
┃>> \ 2 | foo 3 ┃
┃5 ┃
┃>> def foo (a) { + $a } ┃
┃()

@kurtlawrence kurtlawrence added the bug Something isn't working label Aug 18, 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

No branches or pull requests

1 participant