Skip to content
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

The flag -f in hugo new site -f no longer works #11015

Closed
yihui opened this issue May 24, 2023 · 7 comments
Closed

The flag -f in hugo new site -f no longer works #11015

yihui opened this issue May 24, 2023 · 7 comments
Assignees
Milestone

Comments

@yihui
Copy link
Contributor

yihui commented May 24, 2023

The command

hugo new site test -f yaml

throws an error:

command error: unknown shorthand flag: 'f' in -f

The --format flag still works, though. Documentation: https://gohugo.io/commands/hugo_new_site/

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.112.0-0a95d6704a8ac8d41cc5ca8fffaad8c5c7a3754a+extended darwin/amd64 BuildDate=2023-05-23T08:14:20Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

Yes. The problem can be reproduced with Hugo version >= 0.112.0.

It might be caused by 85b13c1.

@bep
Copy link
Member

bep commented May 24, 2023

The --format is now a global flag, and because of that we needed to remove the shorthand (there was a conflict with another flag with the same shorthand).

@bep bep closed this as completed May 24, 2023
@yihui
Copy link
Contributor Author

yihui commented May 24, 2023

Okay, thanks for the explanation! It will be nice to mention it in the release notes and update the documentation accordingly.

@jmooring
Copy link
Member

@yihui I've updated the documentation. See https://gohugo.io/commands/hugo/.

@yihui
Copy link
Contributor Author

yihui commented May 24, 2023

@jmooring Thanks!

@bep On a possibly related note, the -t / --theme flags were removed from hugo new (also absent in hugo new content): gohugoio/hugoDocs@fb3027d#diff-9b75f7a964edc681f1e213d44f1ec7a3d4f5f1678c25f45c78cb238cb2ca052cL62 Was that intentional?

@jmooring
Copy link
Member

@yihui Please create a new issue; this one is closed.

@yihui
Copy link
Contributor Author

yihui commented May 24, 2023

@jmooring Sure: #11018

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants