[
https://issues.apache.org/jira/browse/ACCUMULO-1399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13663664#comment-13663664
]
Dave Marion commented on ACCUMULO-1399:
---------------------------------------
{quote}
One change that would be nice: use "--" to terminate argument parsing, and pass
the remaining args to the script.
{noformat}
script -e rhino -s "println(arg1+', '+arg2)" -- Hello World
{noformat}
{quote}
Couldn't figure out how to do that, changed it from:
{code}
script -e rhino -s "println(arg1+', '+arg2)" -a arg1=Hello -a arg2=World
{code}
to (removed the redundant '-a'):
{code}
script -e rhino -s "println(arg1+', '+arg2)" -a arg1=Hello,arg2=World
{code}
> Pluggable commands for the shell
> --------------------------------
>
> Key: ACCUMULO-1399
> URL: https://issues.apache.org/jira/browse/ACCUMULO-1399
> Project: Accumulo
> Issue Type: New Feature
> Components: shell
> Reporter: Dave Marion
> Assignee: Dave Marion
> Priority: Minor
> Fix For: 1.6.0
>
> Attachments: ACCUMULO-1399-1.patch, ACCUMULO-1399-2.patch
>
>
> Proposing modification to the Shell to allow applications to create their own
> set of commands. This might be accomplished using java.util.ServiceLoader or
> something like it. Specifically, I'm thinking of a case where I have a create
> table command that is different than the one provided by the Shell. In my
> case, my create table command may create one or more tables and setup
> iterators on them.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira