Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands with similar prefixes can become ambiguous #18

Open
GoogleCodeExporter opened this issue Jan 28, 2016 · 0 comments
Open

Commands with similar prefixes can become ambiguous #18

GoogleCodeExporter opened this issue Jan 28, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

Add the following to your ~/.ensocommands:

  class DoSomethingCommand(object):
    def __call__(self, ensoapi, target):
        ensoapi.display_message( "'do something' target is: %s" % target )

  class DoSomethingWithCommand(object):
    def __call__(self, ensoapi, target):
        ensoapi.display_message( "'do something with' target is: %s" % target )

  cmd_do_something = DoSomethingCommand()
  cmd_do_something_with = DoSomethingWithCommand()

Then run the command 'do something with blah'.

What is the expected output? What do you see instead?

You should get a primary message that says "'do something with' target is:
blah', but instead you get "'do something' target is: with blah".

Original issue reported on code.google.com by var...@gmail.com on 28 Mar 2008 at 2:35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant