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

mlaunch with no options should show --help #749

Closed
stennie opened this issue Dec 23, 2019 · 0 comments
Closed

mlaunch with no options should show --help #749

stennie opened this issue Dec 23, 2019 · 0 comments
Assignees
Milestone

Comments

@stennie
Copy link
Collaborator

stennie commented Dec 23, 2019

With no options there is currently a KeyError:

$ mlaunch
Traceback (most recent call last):
  File "mlaunch", line 11, in <module>
    load_entry_point('mtools', 'console_scripts', 'mlaunch')()
  File ".../mtools/mlaunch/mlaunch.py", line 2068, in main
    tool.run()
  File ".../mtools/mlaunch/mlaunch.py", line 538, in run
    self.relative_dir = self.args['dir']
KeyError: 'dir'

This should show the usage info (same as --help)

@stennie stennie added this to the 1.6.0 milestone Dec 23, 2019
@stennie stennie self-assigned this Dec 23, 2019
@stennie stennie changed the title mlaunch with no options has a KeyError: 'dir' mlaunch with no options should show --help Dec 23, 2019
@stennie stennie added improvement and removed bug labels Dec 23, 2019
stennie added a commit to stennie/mtools that referenced this issue Dec 23, 2019
p-mongo pushed a commit to p-mongo/mtools that referenced this issue Feb 24, 2020
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