lib/configliere/commands.rb
#
# Parse the command-line args into the params hash.
#
# '--happy_flag'   produces :happy_flag => true in the params hash
# '--foo=foo_val'  produces :foo => 'foo_val' in the params hash.
# '--'             Stop parsing; all remaining args are piled into :rest
#
# self.rest        contains all arguments that don't start with a '--'
#                  and all args following the '--' sentinel if any.
#
Parse the command-line args into the params hash.


Parse the command - line args into the params hash .
def process_argv!
      super()
      base, cmd = script_base_and_command
      if cmd
        self.command_name = cmd.to_sym
      elsif (not rest.empty?) && commands.include?(rest.first.to_sym)
        self.command_name = rest.shift.to_sym
      end
    end
def process_argv! super ( ) base , cmd = script_base_and_command if cmd self . command_name = cmd . to_sym elsif ( not rest . empty? ) && commands . include? ( rest . first . to_sym ) self . command_name = rest . shift . to_sym end end
Parse the command-line args into the params hash.
'
Parse the command - line args into the params hash . '