Print usage when no path provided.

Patch provided by Ismael-VC. Thanks!
This commit is contained in:
~d6 2024-12-31 14:36:01 -05:00
parent 48032c123d
commit 8082a998a5
1 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,7 @@
( - search&replace )
|00 @System [ &vector $2 &wst $1 &rst $1 &pad $4 &r $2 &g $2 &b $2 &debug $1 &halt $1 ]
|10 @Console [ &vector $2 &read $1 &pad $5 &write $1 &error $1 ]
|10 @Console [ &vector $2 &read $5 &type $1 &write $1 &error $1 ]
|a0 @File [ &vector $2 &success $2 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2 ]
( MAX file size is currently #ce80, i.e. 52864 bytes )
@ -138,6 +138,8 @@
( startup )
|0100
.Console/type DEI ?{ ;messages/usage print crlf quit! }
( init zero page )
#0050 .term/cols STZ2
#0018 .term/rows STZ2
@ -1608,6 +1610,7 @@
&no-matches-found "No 20 "matches 20 "found: 20 00
&term-size-parse-error "Error 20 "parsing 20 "term 20 "size 00
&help-msg "(help: 20 "C-h) 00
&usage "usage: 20 "femto 20 "<file> 00
]
@help-text