forked from dozens/protoadandsuperbowl
feat: argument validation
parent
9cab50e940
commit
3d4c071864
|
@ -37,10 +37,9 @@ the components of the program are:
|
||||||
|
|
||||||
print a helpful message if the script is called without an argument
|
print a helpful message if the script is called without an argument
|
||||||
|
|
||||||
TODO: is `script:get-argument` an array? check to see if length equal zero
|
~~~
|
||||||
|
script:arguments #0 eq? [ 'Error:_Missing_argument s:put ] if;
|
||||||
'ARGS s:put nl
|
~~~
|
||||||
script:get-argument a:length n:put
|
|
||||||
|
|
||||||
## panels
|
## panels
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue