10000 gh-114909: Add --first-weekday option to usage message by planet36 · Pull Request #114910 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 1 commit into from
Feb 2, 2024
Merged

gh-114909: Add --first-weekday option to usage message #114910

merged 1 commit into from
Feb 2, 2024

Conversation

planet36
Copy link
Contributor
@planet36 planet36 commented Feb 2, 2024

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.


📚 Documentation preview 📚: https://cpython-previews--114910.org.readthedocs.build/

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
Copy link
Member

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

Copy link
Member

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.

Copy link
Contributor

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.

Copy link
Member
@serhiy-storchaka serhiy-storchaka left a 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
Copy link
Member

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.

Copy link
Member
@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks all!

@hugovk hugovk merged commit ee66c33 into python:main Feb 2, 2024
@planet36 planet36 deleted the gh-114909 branch February 2, 2024 15:37
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
fsc-eriker pushed a commit to fsc-eriker/cpython that referenced this pull request Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0