diff options
Diffstat (limited to 'lib/bundler/cli.rb')
| -rw-r--r-- | lib/bundler/cli.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 30a306ec90..621deb0950 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -495,10 +495,12 @@ module Bundler else args end - elsif command.nil? - abort("Could not find command \"#{args.join(" ")}\".") - else + elsif help_used + args = args.dup + args.delete_at(help_used) ["help", command || args].flatten.compact + else + args end end |
