I polished it a bit, but the original "find closest match" code came from v2.
Might've been from Jane...
Byron Nevins wrote on 06/22/2011 10:32 PM:
> I think Bill Shannon invented this. This is such a nice feature! A very nice
> touch...
>
>
>
> >asadmin nodes
> Command nodes not found.
> Check the entry of command name. This command may be provided by a package
> that is not installed.
> Closest matching local and remote command(s):
> * list-nodes
> list-nodes-config
> list-nodes-ssh
> *
> ~>asadmin node
> Command node not found.
> Check the entry of command name. This command may be provided by a package
> that is not installed.
> Closest matching local and remote command(s):
> * create-node-config
> create-node-ssh
> delete-node-config
> delete-node-ssh
> install-node
> list-nodes
> list-nodes-config
> list-nodes-ssh
> ping-node-ssh
> uninstall-node
> update-node-config
> update-node-ssh
> *~>
>
> ~>asadmin ssh
> Command ssh not found.
> Check the entry of command name. This command may be provided by a package
> that is not installed.
> Closest matching local and remote command(s):
> * create-node-ssh
> delete-node-ssh
> list-nodes-ssh
> ping-node-ssh
> setup-ssh
> update-node-ssh
>
> *
> --
> Oracle <http://www.oracle.com>
> Byron Nevins | Principal MTS
> Phone: +1 6503958992 <tel:+1%206503958992>
>
> Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
> developing practices and products that help protect the environment