Updated error message to correct grammar for some parser errors

hm, yes that might a better fit than the OptionParserException, but lets do
that in the next step :)


On Tue, Jul 22, 2014 at 11:22 AM, Daniel Cunha (soro) <
notifications@github.com> wrote:

> In src/main/java/org/jboss/aesh/cl/parser/AeshCommandLineParser.java:
>
> >              }
> >              //if no command is "active", we add it as an argument
> >              else {
> >                  if(command.getArgument() == null) {
> > -                    commandLine.setParserException(new OptionParserException("An argument was given to a command that do not support it."));
> > +                    commandLine.setParserException(new OptionParserException("An argument was given to a command that does not support it."));
>
> Maybe is better create a: ArgumentNotSupportException with default msg "An
> argument was given to a command that does not support it."
>
> And you can add it.
>
> WDYT? :)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/aeshell/aesh/pull/101/files#r15217905>.
>