summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncal/ncal.1
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2010-03-12 06:57:53 +0000
committeredwin <edwin@FreeBSD.org>2010-03-12 06:57:53 +0000
commit4bb7c695aae6e35a3727034bd3ef5299beb34393 (patch)
tree28d1a68acf4eafa1b4db2666c4ecd28c9dbb8c73 /usr.bin/ncal/ncal.1
parent0315e29550631732e28638b23a6b325a263f956f (diff)
downloadFreeBSD-src-4bb7c695aae6e35a3727034bd3ef5299beb34393.zip
FreeBSD-src-4bb7c695aae6e35a3727034bd3ef5299beb34393.tar.gz
- With the introduction of -A, -B and -3, not all combinations of
arguments makes sense anymore. For example, what would a combination of -3 (show three months) and -y (show the whole year) do? We will abort on these cases. - Move the debug option -d to -H (from highlight), while -d is now used for setting the day of "today" so that -y and friends can be tested.
Diffstat (limited to 'usr.bin/ncal/ncal.1')
-rw-r--r--usr.bin/ncal/ncal.124
1 files changed, 18 insertions, 6 deletions
diff --git a/usr.bin/ncal/ncal.1 b/usr.bin/ncal/ncal.1
index f7f2187..d9973c2 100644
--- a/usr.bin/ncal/ncal.1
+++ b/usr.bin/ncal/ncal.1
@@ -117,12 +117,6 @@ Britain and her colonies switched to the Gregorian Calendar.
Print the number of the week below each week column.
.It Fl y
Display a calendar for the specified year.
-.It Fl b
-Switch to backwards compatibility mode (for debugging).
-.It Fl d Ar yyyy-mm-dd
-Use
-.Ar yyyy-mm-dd
-as the current date (for debugging of highlighting).
.It Fl 3
Display the previous, current and next month surrounding today.
.It Fl A Ar number
@@ -133,6 +127,16 @@ of months after the current month.
Display the
.Ar number
of months before the current month.
+.It Fl b
+Switch to backwards compatibility mode (for debugging).
+.It Fl d Ar yyyy-mm
+Use
+.Ar yyyy-mm
+as the current date (for debugging of date selection).
+.It Fl H Ar yyyy-mm-dd
+Use
+.Ar yyyy-mm-dd
+as the current date (for debugging of highlighting).
.El
.Pp
A single parameter specifies the year (1\(en9999) to be displayed;
@@ -148,6 +152,14 @@ year default to those of the current system clock and time zone (so
will display a calendar for the month of August in the current
year).
.Pp
+Not all options can be used together. For example
+.Dq Li -3 -A 2 -B 3 -y -m 7
+would mean:
+show me the three months around the seventh month, three before
+that, two after that and the whole year.
+.Nm ncal
+will warn about these combinations.
+.Pp
A year starts on January 1.
.Sh SEE ALSO
.Xr calendar 3 ,
OpenPOWER on IntegriCloud