Li Zefan wrote:
>> both -v and -h are bad (sounds like verbose and help).
> 
> Then how about -H ? Normally we don't use -H to print help information, do we?
> 
>> cal [[[dd] month] year]
> 
> Sounds good, we can print a calendar for the year with a date highlighted:
> 
>     cal -y dd mm yy

yes

> But for the current implementation, this won't print a calendar for the whole
> year:
> 
>     cal -y mm yy
> 
> So it will be inconsistant ?

I wouldn't worry about that inconsistancy.
But I notice that `cal` from bsdmanutils on debian
does print the whole year for this case.
So I would modify util-linux-ng cal to do that also.

> 
>> Maybe we can also implement:
>>
>>   cal +1m      --> current date +1 month
>>   cal +1d +1w  --> Fri next week (today is Thu)
> 
> Seems not tough to implement this functionality. :)

Implementation is never the issue, interface is,
and I'm not sure it worth complicating the interface for this functionality.

Personally I think cal should present a table
for visual inspection by a user.

Highlighting "today" is good, because the user
can't otherwise visually determine what today is.

Highlighting a specific date is questionable actually,
because the user can visually determine it.
It's a simple extension of the interface though,
so it is probably OK. Also it will help with automated testing.

Highlighting "Fri next week" is just taking it
too far I think.

thanks,
Pádraig.
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to