diff options
Diffstat (limited to 'lib/rubygems/command.rb')
-rw-r--r-- | lib/rubygems/command.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/rubygems/command.rb b/lib/rubygems/command.rb index ab21013c2a..ce057af440 100644 --- a/lib/rubygems/command.rb +++ b/lib/rubygems/command.rb @@ -429,12 +429,10 @@ class Gem::Command # True if the command handles the given argument list. def handles?(args) - begin - parser.parse!(args.dup) - return true - rescue StandardError - return false - end + parser.parse!(args.dup) + return true + rescue StandardError + return false end ## |