You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using "oclif"."topicSeparator": " " alongside a "usage" override in the command, the generated help is incorrect.
To Reproduce
When I use for example mynewcli first:second and I have the usage for this command/topic to be something like const usage = 'first:second <something>' this will generate a help with usage like "first:second ", however, if I do the same using mynewcli first second" and use a topicSeparator of " ", and usage is const usage = 'first second 'the generated help will befirst second first second ` duplicating the usage name.
Expected behavior
I expected that usage should be similar when using any topicSeparator, without duplicating the command.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Describe the bug
When using "oclif"."topicSeparator": " " alongside a "usage" override in the command, the generated help is incorrect.
To Reproduce
When I use for example
mynewcli first:second
and I have the usage for this command/topic to be something likeconst usage = 'first:second <something>'
this will generate a help with usage like "first:second ", however, if I do the same usingmynewcli first second" and use a topicSeparator of " ", and usage is
const usage = 'first second 'the generated help will be
first second first second ` duplicating the usage name.Expected behavior
I expected that usage should be similar when using any topicSeparator, without duplicating the command.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Debugging, I found that this is caused be cause here it gets the standarizedId: https://github.com/oclif/core/blob/main/src/help/command.ts#L334 and then just replaces it https://github.com/oclif/core/blob/main/src/help/command.ts#L346
I think we could also replace the configuredId, so that I can use the expected "usage" as above
The text was updated successfully, but these errors were encountered: