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

mesos completion should give a nicer error message if called directly #57

Open
ssk2 opened this issue Feb 20, 2015 · 0 comments
Open

mesos completion should give a nicer error message if called directly #57

ssk2 opened this issue Feb 20, 2015 · 0 comments

Comments

@ssk2
Copy link
Contributor

ssk2 commented Feb 20, 2015

Euch.

(env)➜  mesos-cli git:(nicer-help) ✗ mesos
Usage: mesos <command> [OPTIONS]

Available commands:
    cat
    completion
    config
    events
    execute
    find
    head
    help
    local
    log
    ls
    ps
    resolve
    scp
    ssh
    state
    tail
(env)➜  mesos-cli git:(nicer-help) ✗ mesos completion
Traceback (most recent call last):
  File "/Users/sunil/workspace/mesos-cli/env/bin/mesos-completion", line 9, in <module>
    load_entry_point('mesos.cli==0.1.4', 'console_scripts', 'mesos-completion')()
  File "/Users/sunil/workspace/mesos-cli/env/lib/python2.7/site-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/sunil/workspace/mesos-cli/env/lib/python2.7/site-packages/pkg_resources.py", line 2431, in load_entry_point
    return ep.load()
  File "/Users/sunil/workspace/mesos-cli/env/lib/python2.7/site-packages/pkg_resources.py", line 2147, in load
    ['__name__'])
  File "/Users/sunil/workspace/mesos-cli/mesos/cli/cmds/completion.py", line 65, in <module>
    @cli.init()
TypeError: init() takes exactly 1 argument (0 given)
(env)➜  mesos-cli git:(nicer-help) ✗ mesos completion --help
Traceback (most recent call last):
  File "/Users/sunil/workspace/mesos-cli/env/bin/mesos-completion", line 9, in <module>
    load_entry_point('mesos.cli==0.1.4', 'console_scripts', 'mesos-completion')()
  File "/Users/sunil/workspace/mesos-cli/env/lib/python2.7/site-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/sunil/workspace/mesos-cli/env/lib/python2.7/site-packages/pkg_resources.py", line 2431, in load_entry_point
    return ep.load()
  File "/Users/sunil/workspace/mesos-cli/env/lib/python2.7/site-packages/pkg_resources.py", line 2147, in load
    ['__name__'])
  File "/Users/sunil/workspace/mesos-cli/mesos/cli/cmds/completion.py", line 65, in <module>
    @cli.init()
TypeError: init() takes exactly 1 argument (0 given)
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