Access the argv

27 views
Skip to first unread message

Rodrigo Herefeld

unread,
Mar 4, 2013, 7:58:49 AM3/4/13
to mi...@googlegroups.com
How do i access the ARGV variable?

--
Rodrigo Cesar Herefeld

Nick Howard

unread,
Mar 5, 2013, 11:46:06 AM3/5/13
to mi...@googlegroups.com
There isn't currently an ARGV available in the implicit main for a script. I've been wanting to add it. I put in an issue https://github.com/mirah/mirah/issues/212

You can work around it by writing something like this, though it's not nearly as nice.

class MyScript
  def self.main argv:string[]
    # do stuff
  end
end

--
You received this message because you are subscribed to the Google Groups "The Mirah Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mirah+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
-Nick Howard
http://blog.baroquebobcat.com/

Reply all
Reply to author
Forward
0 new messages