-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
8000 gh-114909: Add --first-weekday option to usage message #114910
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
Conversation
Use FIRST_WEEKDAY rather than WEEKDAY to be in agreement with the command line help message. Note which Python version the option was added to.
|
||
The weekday to start each week. | ||
Must be a number between 0 (Monday) and 6 (Sunday). | ||
Defaults to 0. | ||
|
||
.. versionadded:: 3.13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erlend-aasland We talked recently about the distinction between versionadded
and versionchanged
, which do you think we should have here?
https://devguide.python.org/documentation/markup/#paragraph-level-markup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is applied to the option -- versionadded. If to the whole CLI -- versionchanged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this looks correct to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
|
||
The weekday to start each week. | ||
Must be a number between 0 (Monday) and 6 (Sunday). | ||
Defaults to 0. | ||
|
||
.. versionadded:: 3.13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is applied to the option -- versionadded. If to the whole CLI -- versionchanged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks all!
Use
FIRST_WEEKDAY
rather thanWEEKDAY
to be in agreement with the command line help message.Note which Python version the option was added to.
📚 Documentation preview 📚: https://cpython-previews--114910.org.readthedocs.build/