fluent/fluentd — pull request #328 by uu59 (2014-05-26 05:29:27+00:00)
Title: Fix fluent-debug raises undefined method 'usage'

`fluent-debug` can't handle invalid option correctory.

```
$ ./bin/fluent-debug -p
/Users/uu59/works/td/fluentd/lib/fluent/command/debug.rb:47:in `rescue in ': undefined method `usage' for main:Object (NoMethodError)
from /Users/uu59/works/td/fluentd/lib/fluent/command/debug.rb:40:in `'
from /Users/uu59/.rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/uu59/.rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from ./bin/fluent-debug:6:in `

'
```

↓ fixed

```
$ ./bin/fluent-debug -p
Usage: fluent-debug [options]
-h, --host HOST fluent host (default: 127.0.0.1)
-p, --port PORT debug_agent tcp port (default: 24230)
-u, --unix PATH use unix socket instead of tcp
error: missing argument: -p
```