feat: argument validation

pull/1/head
dozens 2021-08-29 15:22:56 -06:00
parent 9cab50e940
commit 3d4c071864
1 changed files with 3 additions and 4 deletions

View File

@ -37,10 +37,9 @@ the components of the program are:
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
'ARGS s:put nl
script:get-argument a:length n:put
~~~
script:arguments #0 eq? [ 'Error:_Missing_argument s:put ] if;
~~~
## panels