title: Ruby OptionParser: How do I get the PATH? if the command is just "command path/to/some/file"?
body: <p>I want create a command that has the following structure <code>command path/to/some/file</code></p>
  
  <p>How do I enable this without entering the option -p or --path? </p>
  
  <pre><code>#!/usr/bin/env ruby
  require 'optparse'
  
  options = {}
  option = OptionParser.new() do |opts|
  
      opts.on('-p PATH', '--path PATH', 'First path argument') do |path| // How do I enable this without entering the option -p or --path? 
         options[:path] = path
      end
  end
  
  option.parse!(ARGV)
  </code></pre>