Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] command line arguments

From: tmail5:cogeco:ca at: 2-Apr-2004 16:11

still a beginner here. i was hardcoding a log file for parseing like this: binkd-log: read/lines %binkd.log and doing a: forall binkd-log [] later on i wanted to add command line parsing so i tried this: either not system/script/args == none [ arg: system/script/args arg: parse arg "" binkd-log: read/lines arg/1 ][ print "usage: <path/to/binkd.log>" ] but i get: ** Script Error: read expected source argument of type: file url object block how do i get the equivalent of 'read/lines %binkd.log' into binkd-log from the arg/1 argument?