Skip to content

Commit

Permalink
- Fixed bug in command_name_from_args
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jan 16, 2009
1 parent 1d32b6c commit 226f239
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/commander/runner.rb
Expand Up @@ -149,11 +149,9 @@ def active_command
# command names.

def command_name_from_args
p @args
args = @args.delete_switches
name = args.shift
args.each { |arg| name << " #{args.shift}" unless command_exists? name }
p @args
args.each { |arg| name += " #{args.shift}" unless command_exists? name }
name
end

Expand Down

0 comments on commit 226f239

Please sign in to comment.