reyjrar/es-utils — pull request #5 by takus (2014-01-08 04:43:48+00:00)
Title: Use Getopt::Long with recommended options

Hi,

I tried to use `es-nagios-check.pl` with -H option, but it didn't work.
It seems that -H is recognized as --help like this:

```
$ perl scripts/es-nagios-check.pl -H [host]
Usage:
es-nagios-check.pl -H [host] [options]
```

I think this is caused by default settings of `Getopt::Long`. I strongly recommend adding some configurations like this commit when we use Getopt::Long (See details in perldoc Getopt::Long).

After applying this patch, it works well.

```
$ perl scripts/es-nagios-check.pl -H [host]
ok: FETCH_HEALTH, HEALTH
```

I really appreciated if you would merge this PR.
Thanks.