-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Extended CLI commands no longer appear in -h
or --help
output
#10681
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Comments
sserrata
added
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Nov 14, 2024
CLI output from my repro:
|
4 tasks
Thanks, I'll take a look Looks like I broken something here #10368 |
slorber
removed
the
status: needs triage
This issue has not been triaged by maintainers
label
Nov 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Using
extendCli
to extend the docusaurus CLI with new commands no longer includes those commands, i.e. usage, description, arguments, options, when executingdocusaurus --help
ordocusaurus -h
.However, the extended commands do appear in the console output after attempting to call an unknown command.
I verified that extended command usage does appear in prior docusaurus release, e.g. v2.4.3 but have not tested releases in between that and the current release.
Reproducible demo
https://codesandbox.io/p/devbox/elegant-water-docusaurus?privacy=public
Steps to reproduce
docusaurus.config.js
to include the new plugin.yarn docusaurus -h
and observe the extended command is not present in help output.yarn docusaurus foo
and observe the extended command in the output.Expected behavior
When executing
yarn docusaurus -h
I expect to see my extended command usage, description, options, etc., in the output.Actual behavior
Running
yarn docusaurus -h
not not include the usage for my extended command. However, my extended command does appear when I attempt to pass an invalid command argument.Your environment
Self-service
The text was updated successfully, but these errors were encountered: