8000 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

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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Doc/library/calendar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ to interactively print a calendar.

python -m calendar [-h] [-L LOCALE] [-e ENCODING] [-t {text,html}]
[-w WIDTH] [-l LINES] [-s SPACING] [-m MONTHS] [-c CSS]
[year] [month]
[-f FIRST_WEEKDAY] [year] [month]


For example, to print a calendar for the year 2000:
Expand Down Expand Up @@ -586,12 +586,13 @@ The following options are accepted:
or as an HTML document.


.. option:: --first-weekday WEEKDAY, -f WEEKDAY
.. option:: --first-weekday FIRST_WEEKDAY, -f FIRST_WEEKDAY

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.


.. option:: year

Expand Down
0