-e command line switch to eval code
parent
26c1a2f4ba
commit
2a260ea6e4
|
@ -40,6 +40,7 @@ parser sequences strings ;
|
||||||
: default-cli-args
|
: default-cli-args
|
||||||
#! Some flags are *on* by default, unless user specifies
|
#! Some flags are *on* by default, unless user specifies
|
||||||
#! -no-<flag> CLI switch
|
#! -no-<flag> CLI switch
|
||||||
|
"e" off
|
||||||
"user-init" on
|
"user-init" on
|
||||||
"compile" on
|
"compile" on
|
||||||
"native-io" on
|
"native-io" on
|
||||||
|
@ -54,5 +55,8 @@ parser sequences strings ;
|
||||||
macosx? "shell" get "ui" = and ;
|
macosx? "shell" get "ui" = and ;
|
||||||
|
|
||||||
: parse-command-line ( -- )
|
: parse-command-line ( -- )
|
||||||
|
[
|
||||||
cli-args [ cli-arg ] subset
|
cli-args [ cli-arg ] subset
|
||||||
ignore-cli-args? [ drop ] [ [ ?run-file ] each ] if ;
|
ignore-cli-args? [ drop ] [ [ run-file ] each ] if
|
||||||
|
"e" get eval
|
||||||
|
] try ;
|
||||||
|
|
Loading…
Reference in New Issue