mirror of
https://github.com/python/cpython.git
synced 2025-09-18 22:50:26 +00:00
gh-114909: Add --first-weekday option to usage message (#114910)
This commit is contained in:
parent
b3f0b698da
commit
ee66c33349
1 changed files with 3 additions and 2 deletions
|
@ -512,7 +512,7 @@ to interactively print a calendar.
|
||||||
|
|
||||||
python -m calendar [-h] [-L LOCALE] [-e ENCODING] [-t {text,html}]
|
python -m calendar [-h] [-L LOCALE] [-e ENCODING] [-t {text,html}]
|
||||||
[-w WIDTH] [-l LINES] [-s SPACING] [-m MONTHS] [-c CSS]
|
[-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:
|
For example, to print a calendar for the year 2000:
|
||||||
|
@ -586,12 +586,13 @@ The following options are accepted:
|
||||||
or as an HTML document.
|
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.
|
The weekday to start each week.
|
||||||
Must be a number between 0 (Monday) and 6 (Sunday).
|
Must be a number between 0 (Monday) and 6 (Sunday).
|
||||||
Defaults to 0.
|
Defaults to 0.
|
||||||
|
|
||||||
|
.. versionadded:: 3.13
|
||||||
|
|
||||||
.. option:: year
|
.. option:: year
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue