summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_command.rb
diff options
context:
space:
mode:
-rw-r--r--test/rubygems/test_gem_command.rb12
1 files changed, 12 insertions, 0 deletions
@@ -189,6 +189,18 @@ class TestGemCommand < Gem::TestCase
assert_match %r{Usage: gem doit}, @ui.output
end
def test_option_recognition
@cmd.add_option('-h', '--help [COMMAND]', 'Get help on COMMAND') do |value, options|
options[:help] = true