From 3d4c07186462a3d9164e05daffb4a72137e25e36 Mon Sep 17 00:00:00 2001 From: dozens Date: Sun, 29 Aug 2021 15:22:56 -0600 Subject: [PATCH] feat: argument validation --- bin/toad.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/toad.md b/bin/toad.md index 30933a7..e048300 100644 --- a/bin/toad.md +++ b/bin/toad.md @@ -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