-
Notifications
You must be signed in to change notification settings - Fork 69
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
topics with no same-name command give odd help info #555
Comments
The usage section in this case indicates that you can use the topic by specifying a sub command,
I believe this is a valid usage string so I'm not convinced that we should get rid of it but I'm open to hearing arguments about why it should. Also, the description for the topic can be configured by adding it to the "oclif": {
"topics": {
"topic-only": {
"description": "This topic has no top-level command"
}
}
} |
Thanks for the help. I wasn't aware of the configuration in package.json. I'm closing this although I still think there is room for improvement. A couple of errors I made in the original description of this:
|
Describe the bug
When I have a topic that does not have a same-name command, the help output produced for the topic describes a command in the topic rather than being generic to the topic.
To Reproduce
Steps to reproduce the behavior:
npm install && npm build
../bin/run topic-only --help
to see help for the topic that has no same-name command associated with it.Expected behavior
The description at the top should mention this is a topic only and there should be no
USAGE
stanza. Ideally the description would be configurable somehow.Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Perhaps there is already a way to fix this? We use oclif in the SmartThings CLI and have this problem there. We have an
edge
topic but noedge
command. For now, I've created anedge
command that has a description ofedge topic
and just displays a message asking the user run--help
.SmartThingsCommunity/smartthings-cli#444
The text was updated successfully, but these errors were encountered: