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

Inconsistency with commands that use dash. #1610

Closed
kiwiroy opened this issue Nov 17, 2020 · 1 comment
Closed

Inconsistency with commands that use dash. #1610

kiwiroy opened this issue Nov 17, 2020 · 1 comment

Comments

@kiwiroy
Copy link
Contributor

kiwiroy commented Nov 17, 2020

The default hint APPLICATION help COMMAND does not find the underscore named module, since the switch to using a dash rather than an underscore in 863f97b. I feel the following line should be after the help detection, rather than before.

$name =~ s/-/_/g;

Expected

Help is displayed in the terminal for the command.

Actual

./script/myapp help kebab-time
Unknown command "kebab-time", maybe you need to install it?

Also, why is the issue template not applied here?

@kraih
Copy link
Member

kraih commented Nov 17, 2020

This is actually much easier demonstrated with

$ mojo generate help lite-app
Unknown command "lite-app", maybe you need to install it?

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

2 participants