Paste: hello-args

Author: tsculpt
Mode: factor
Date: Mon, 25 May 2009 18:19:24
Plain Text |
USING: command-line io namespaces sequences ;
IN: hello-args

! 'command-line get' works in scripting environment,
! but not with a deployed executable. How does one
! access the args to one's own executable?

: hello-args ( -- )
  "Hello " write
  command-line get " " join print ;

MAIN: hello-args

New Annotation

Summary:
Author:
Mode:
Body: