ogma
ogma copied to clipboard
[BUG] Should error with too many arguments
\ 2 | foo 'hasdfg'
┃4
┃>> \ 2 | foo 3
┃4
┃>> foo --help ┃
┃Help: foo
┃
┃--> shell:0 ┃
┃ | ---- Input Type: 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 } ┃
┃()