diff options
author | Akira Matsuda <ronnie@dio.jp> | 2011-06-10 04:45:50 +0900 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-06-11 22:31:49 -0700 |
commit | b541209377073158e6e2fee07ddd1f7dc6f89062 (patch) | |
tree | 490d4646f572e2abeaa9bde2f6aa5c660be82aed /lib | |
parent | 43bd22e8f58584d3abef9cc3fd306983a30bd0e8 (diff) | |
download | bundler-b541209377073158e6e2fee07ddd1f7dc6f89062.tar.gz |
subcommand name can be nil here
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/vendor/thor.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/vendor/thor.rb b/lib/bundler/vendor/thor.rb index 35c4379b..92b24342 100644 --- a/lib/bundler/vendor/thor.rb +++ b/lib/bundler/vendor/thor.rb @@ -317,6 +317,7 @@ class Thor # terrible hack that overwrites ARGV def find_subcommand_and_update_argv(subcmd_name) #:nodoc: + return unless subcmd_name cmd = find_subcommand(subcmd_name) ARGV[0] = cmd if cmd cmd |