summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorKarol Baraniecki <karol@baraniecki.eu>2023-03-12 18:21:57 +0100
committerAndrew Kaster <andrewdkaster@gmail.com>2023-04-25 01:54:53 -0600
commit114da3a275585548e6cac595f72de9ba8fa4fabb (patch)
tree1dc154265864a51731303403d83cbbd7e066d357 /Base
parentb4bec4dd2fab6361acf512786c6ee620f6fc8de2 (diff)
downloadserenity-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.md6
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