How to access original command-line argument string in Ruby?
Posted
by Bub Bradlee
on Stack Overflow
See other posts from Stack Overflow
or by Bub Bradlee
Published on 2010-06-03T14:26:53Z
Indexed on
2010/06/03
14:34 UTC
Read the original article
Hit count: 263
ruby
|command-line-arguments
I'm trying to access the original command line argument string in Ruby (ie - not using the pre-split/separated ARGV array). Does anyone know how to do this? For example:
$> ruby test.rb command "line" arguments
I want to be able to tell if 'line' had quotes around it:
"command \"line\" arguments"
Any tips? Thanks in advance
© Stack Overflow or respective owner