ogma icon indicating copy to clipboard operation
ogma copied to clipboard

[BUG] Should error with too many arguments

Open kurtlawrence opened this issue 2 years ago • 0 comments

\ 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 avatar Aug 18 '22 03:08 kurtlawrence