I'm working on simple script that setup project structure for me (directories/files). I have an issue with retrieving argument passed as command line argument:
#!/usr/bin/env ruby
project_name = ARGV.first
puts "Provide project name" ; abort if project_name.nil?
When I try to run it, I get:
$ ./creator test
Provide project name
May be I'm not aware of something. When I do without #!/usr/bin/env ruby it works perfect.