diff options
author | Karol Baraniecki <karol@baraniecki.eu> | 2023-03-12 18:21:57 +0100 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-04-25 01:54:53 -0600 |
commit | 114da3a275585548e6cac595f72de9ba8fa4fabb (patch) | |
tree | 1dc154265864a51731303403d83cbbd7e066d357 /Base | |
parent | b4bec4dd2fab6361acf512786c6ee620f6fc8de2 (diff) | |
download | serenity-114da3a275585548e6cac595f72de9ba8fa4fabb.zip |
cal: Make start of the week configurable
Making all the other parts of the world happier :^)
Add a `--starting-day` (`-s`) option to be compatible with GNU cal,
which has a similar option. The GNU option takes allows passing either
an int or a day name. Let's do something similar using weekdays we
already have in AK/DateConstants.h.
Also add myself to the copyright header, as by now I've modified most of
the lines in this file.
Diffstat (limited to 'Base')
-rw-r--r-- | Base/usr/share/man/man1/cal.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Base/usr/share/man/man1/cal.md b/Base/usr/share/man/man1/cal.md index 021826c9a6..4d99d9b30b 100644 --- a/Base/usr/share/man/man1/cal.md +++ b/Base/usr/share/man/man1/cal.md @@ -5,7 +5,7 @@ cal - Display a calendar ## Synopsis ```**sh -$ cal [[month] year] +$ cal [--starting-day weekday] [[month] year] ``` ## Description @@ -17,6 +17,10 @@ The current day is always highlighted. Days, months and years are specified with numbers. Week starts at Sunday. +## Options + +* `-s`, `--starting-day`: Specify which day should start the week. Accepts either short or long weekday names or indexes (0 being Sunday). + ## Examples ```sh |