Skip to content

Commit

Permalink
FIX: quit after using --help startup option
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Oct 7, 2020
1 parent 57384f4 commit 81e9e0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mezz/mezz-help.reb
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ import module [
^[[1;32m--args data^[[m Explicit arguments to script (quoted)
^[[1;32m--do expr^[[m Evaluate expression (quoted)
^[[1;32m--help (-?)^[[m Display this usage information
^[[1;32m--help (-?)^[[m Display this usage information (then quit)
^[[1;32m--script file^[[m Explicit script filename
^[[1;32m--version tuple^[[m Script must be this version or greater
Expand Down
7 changes: 6 additions & 1 deletion src/mezz/sys-start.reb
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,17 @@ start: func [
do bind-lib boot-mezz
boot-mezz: 'done

;loud-print "Init protocols..."
foreach [spec body] boot-prot [module spec body]
;do bind-lib boot-prot
boot-prot: 'done

;-- User is requesting usage info:
if flags/help [lib/usage quiet: true]
if flags/help [
lib/usage
unless flags/halt [quit/now]
quiet: true
]

;-- Print fancy banner (created by mezz plus):
if any [
Expand Down

0 comments on commit 81e9e0a

Please sign in to comment.