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

IndexError on aliases with no parameters #27

Open
egegunes opened this issue Oct 17, 2018 · 0 comments
Open

IndexError on aliases with no parameters #27

egegunes opened this issue Oct 17, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@egegunes
Copy link
Owner

Config:

[alias]
s = list statuses

Command: redmine s

Error:

Traceback (most recent call last):
  File "/home/egegunes/Dev/redmine-cli/venv/bin/redmine", line 11, in <module>
    load_entry_point('redmine-cli', 'console_scripts', 'redmine')()
  File "/home/egegunes/Dev/redmine-cli/venv/lib64/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/egegunes/Dev/redmine-cli/venv/lib64/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/egegunes/Dev/redmine-cli/venv/lib64/python3.6/site-packages/click/core.py", line 1132, in invoke
    cmd_name, cmd, args = self.resolve_command(ctx, args)
  File "/home/egegunes/Dev/redmine-cli/venv/lib64/python3.6/site-packages/click/core.py", line 1171, in resolve_command
    cmd = self.get_command(ctx, cmd_name)
  File "/home/egegunes/Dev/redmine-cli/redmine/cli/alias.py", line 26, in get_command
    params = self.group_params(actual_cmd[1:])
  File "/home/egegunes/Dev/redmine-cli/redmine/cli/alias.py", line 11, in group_params
    grouped_params.append((params[i].lstrip("-"), params[i + 1]))
IndexError: list index out of range
@egegunes egegunes added the bug Something isn't working label Oct 17, 2018
@egegunes egegunes added this to the 1.0 milestone Oct 17, 2018
@egegunes egegunes removed this from the 1.0 milestone May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant