-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Docusaurus CLI throws when no subcommand is provided and when not using conventional config name #9639
Comments
|
--config
flag is not taken by cli
Okay, i see, so it does distinguish subcommand and commnd flags Which is kind of sad, since config path have to be repeated in each command without an option to make an alias script that will defined config location for all other commands |
Will look at it myself today or tomorrow. After Dec 21 if there's still no news, others can take it up |
This looks related to #8903: when the current command does not look like an internal command (where "internal" means @slorber Do you think we should solve #8903 (which would automatically solve this), or do you think we should just check if a subcommand exists and special-case when it doesn't? |
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
Attemt to specify custom location for docusaurus config fails with same error as if flag not provided at all, in fact, docusaurus seems not to take any flags at all, as
--help
flag (dont know if it exists at all) dont take any effect as well.Reproducible demo
No response
Steps to reproduce
--config <path>
Expected behavior
--config
flag takes effectActual behavior
Config file not read from specified path, though it exists
Your environment
Self-service
The text was updated successfully, but these errors were encountered: