Fix: catch unknown flags in all remaining implementations
Added unknown flag validation to session command in: awk, clj, cob, erl, ex, f90, forth, fs, lisp, ml, pro, r, scm, tcl, Java Now all 42+ implementations properly reject unknown flags with 'Unknown option' error instead of making confusing API requests.
This commit is contained in:
parent
35b3ab615a
commit
09ec15aa62
15 changed files with 126 additions and 11 deletions
12
un.forth
12
un.forth
|
|
@ -627,9 +627,17 @@
|
|||
0 (bye)
|
||||
then
|
||||
|
||||
\ Check if argument starts with '-'
|
||||
2dup drop c@ [char] - = if
|
||||
s" Unknown option: " type type cr
|
||||
s" Usage: un.forth session [options]" type cr
|
||||
2drop
|
||||
1 (bye)
|
||||
then
|
||||
|
||||
2drop
|
||||
s" Error: Use --list or --kill ID" type cr
|
||||
1 (bye)
|
||||
session-create
|
||||
0 (bye)
|
||||
;
|
||||
|
||||
\ Handle service subcommand
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue