arguments.coffee 197 B

1234567
  1. system = require 'system'
  2. if system.args.length is 1
  3. console.log 'Try to pass some args when invoking this script!'
  4. else
  5. for arg, i in system.args
  6. console.log i + ': ' + arg
  7. phantom.exit()