]> gitweb.factorcode.org Git - factor.git/commitdiff
listener: print version-info in command-line.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 13 Nov 2014 17:58:37 +0000 (09:58 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 13 Nov 2014 17:58:37 +0000 (09:58 -0800)
basis/listener/listener.factor

index 1e5f38e09383df8d798213cfc608c3ece9a654d4..bdfb86ea2a22f161b437f373aebc90826a84d57d 100644 (file)
@@ -4,7 +4,7 @@ USING: accessors colors colors.constants
 combinators.short-circuit compiler.units continuations debugger
 fry io io.styles kernel lexer locals math math.parser namespaces
 parser parser.notes prettyprint sequences sets
-source-files.errors vocabs vocabs.loader vocabs.parser ;
+source-files.errors system vocabs vocabs.loader vocabs.parser ;
 IN: listener
 
 GENERIC: stream-read-quot ( stream -- quot/f )
@@ -211,4 +211,7 @@ SYMBOL: interactive-vocabs
 : listener ( -- )
     [ [ { } (listener) ] with-return ] with-interactive-vocabs ;
 
-MAIN: listener
+: listener-main ( -- )
+    version-info print flush listener ;
+
+MAIN: listener-main