geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (GEODE-1598) gfsh auto-complete removes previously typed options
Date Tue, 26 Jul 2016 04:57:20 GMT


ASF subversion and git services commented on GEODE-1598:

Commit 6b4c637edc4964d6f40a17c9c1cd703f2dc68f31 in incubator-geode's branch refs/heads/develop
from gmeilen
[;h=6b4c637 ]

GEODE-1598: fix auto-completion problems by telling jopt that all options are optional

Spring shell, jopt-simple and Geode GFSH code all duplicated the concept of required options.
jopt-simple can be blind to this, which prevents OptionParser.parse from throwing an Exception
when a required option is missing at time of hitting tab for auto-complete. This allows OptionParser
to return an OptionSet containing all detected options which is necessary for auto-completion
to behave correctly.

This closes #195

> gfsh auto-complete removes previously typed options
> ---------------------------------------------------
>                 Key: GEODE-1598
>                 URL:
>             Project: Geode
>          Issue Type: Bug
>          Components: gfsh
>    Affects Versions: 1.0.0-incubating.M3
>            Reporter: Swapnil Bawaskar
>            Assignee: Grace Meilen
> This may also be related to fixing GEODE-835.
> When one starts typing in a gfsh command like:
> {noformat}
> gfsh>start server --name=serv1 --se
> {noformat}
> and then hit {{tab}} for autocompletion, the previously completed --name option disappears
and all I am left with is:
> {noformat}
> gfsh>start server --se
> {noformat}

This message was sent by Atlassian JIRA

View raw message