From keramida@ceid.upatras.gr  Tue Oct  3 14:48:12 2000
Return-Path: <keramida@ceid.upatras.gr>
Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1])
	by hub.freebsd.org (Postfix) with ESMTP id E947137B503
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 Oct 2000 14:48:06 -0700 (PDT)
Received: from hades.hell.gr (patr530-b052.otenet.gr [195.167.121.180])
	by athserv.otenet.gr (8.10.1/8.10.1) with ESMTP id e93Lkod05268
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 4 Oct 2000 00:46:51 +0300 (EET DST)
Received: (from charon@localhost)
	by hades.hell.gr (8.11.0/8.11.0) id e93LlAl04340;
	Wed, 4 Oct 2000 00:47:10 +0300 (EEST)
Message-Id: <200010032147.e93LlAl04340@hades.hell.gr>
Date: Wed, 4 Oct 2000 00:47:10 +0300 (EEST)
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: FreeBSD-gnats-submit@freebsd.org
Subject: calendar(1) usage message correction
X-Send-Pr-Version: 3.2

>Number:         21734
>Category:       bin
>Synopsis:       Correction to calendar(1) usage message
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    alex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 03 14:50:00 PDT 2000
>Closed-Date:    Fri Oct 6 05:11:36 PDT 2000
>Last-Modified:  Fri Oct 06 05:11:50 PDT 2000
>Originator:     Giorgos Keramidas
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
>Environment:

	% uname -a
	FreeBSD hades.hell.gr 4.1-STABLE FreeBSD 4.1-STABLE #0:
	  Tue Sep 26 02:30:46 EEST 2000
	  root@hades.hell.gr:/usr/src/sys/compile/HADES  i386

>Description:

        The manpage of calendar(1) describes the -t option, but the
        usage message that is printed when the command is used with an
        invalid option does not include the description of -t.

>How-To-Repeat:

	% man calendar
	[ look for description of -t option ]
	% calendar -h
	calendar: illegal option -- h
	usage: calendar [-a] [-A days] [-B days] [-f calendarfile]

>Fix:

	The following small patch corrects this.

diff -r -u -N /usr/src/usr.bin/calendar/calendar.c calendar/calendar.c
--- /usr/src/usr.bin/calendar/calendar.c	Sat Aug 26 05:50:59 2000
+++ calendar/calendar.c	Tue Oct  3 23:32:17 2000
@@ -135,7 +135,7 @@
 usage()
 {
 	(void)fprintf(stderr, 
-		      "usage: calendar [-a] [-A days] [-B days] [-f calendarfile]\n");
+		      "usage: calendar [-a] [-A days] [-B days] [-f calendarfile] [-t dd[.mm[.year]]]\n");
 	exit(1);
 }
 

>Release-Note:
>Audit-Trail:

From: Johan Karlsson <k@numeri.campus.luth.se>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/21734: Correction to calendar(1) usage message
Date: Wed, 04 Oct 2000 20:35:20 +0200

 Hi
 Actually the man page should be updated to list the option 
 in alphabetic order as well.
 
 --- src/usr.bin/calendar/calendar.1.old	Wed Oct  4 20:29:57 2000
 +++ src/usr.bin/calendar/calendar.1	Wed Oct  4 20:25:29 2000
 @@ -43,12 +43,12 @@
  .Op Fl a
  .Op Fl A Ar num
  .Op Fl B Ar num
 +.Op Fl f Ar calendarfile
  .Oo Fl t Ar dd
  .Sm off
  .Op . Ar mm Op . Ar year
  .Sm on
  .Oc
 -.Op Fl f Ar calendarfile
  .Sh DESCRIPTION
  .Nm Calendar
  checks the current directory for a file named
 
 
 
 
 /Johan K
 
Responsible-Changed-From-To: freebsd-bugs->alex 
Responsible-Changed-By: johan 
Responsible-Changed-When: Thu Oct 5 14:43:46 PDT 2000 
Responsible-Changed-Why:  
Hi Alexander 
Is it ok if I assign PRs with patches which I think are commit 
candidates to you? :-) 
This PR is a more or less a doc bug and I have seen that you 
have closed a few of these. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21734 
State-Changed-From-To: open->closed 
State-Changed-By: alex 
State-Changed-When: Fri Oct 6 05:11:36 PDT 2000 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21734 
>Unformatted:
