-
Notifications
You must be signed in to change notification settings - Fork 1.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
mdbook init force flag documentation is wrong #1556
Comments
Hm, looks like this was changed as part of #491, but there doesn't seem to be an explanation why. I would say the original intent is that it avoids all prompts. I agree that |
Thoughts on adding the extra flags as well to make it possible to supply an answer for book name and .gitignore creation as part of the fix here? Or do you prefer to just make force do what it says and use defaults for those (and maybe call them out in the documentation string)? |
Preferably have separate PRs. As for the flags, how about |
I went with The next step would be to set defaults and check
|
What's the status on this? |
I just found this issue. Would you welcome a PR? What default would you want for the title, |
@rustbot claim |
I'm not certain about the defaults, but I'll suggest:
|
The documentation for the force flag for the
init
subcommand states "Skips confirmation prompts", but it actually only affects whether a prompt is given if the--theme
flag is present and the theme directory exists. It has no effect on the prompts for creating the.gitignore
or getting the book name (which, ok, isn't technically a "confirmation" prompt).The easiest fix is to just update the documentation. Another fix might be to make the
.gitignore
prompt also respect the flag so that the "confirmation" part is technically right. It might also be helpful to add a flag for creating the.gitignore
and the book title too to round things out and make book initialization fully prompt free if someone desires.Something like this. If
--force
is specified, in addition to the current behavior, init the book with the defaults for--with-gitignore
and--with-title
.The text was updated successfully, but these errors were encountered: