Re: [RFC/PATCH] week numbers for cal

Pádraig Brady
2013-10-07T17:06:46Z

On 10/07/2013 12:39 PM, Tommi Kyntola wrote:
> Why not. I wasn't sure what exactly should be done with 52 when many
> years have days belonging to two different 52 weeks, but I came up
> with a spec that says it points to the week that starts during the
> relevant year.
>
> A patch in guthub:
> https://github.com/Kynde/util-linux/commit/3a53abddc14f46eccb4264668b24875054f5ba62

It's generally best to avoid optional args on short args,
as in this case -w3 is ambiguous and -wj is problematic.
So I'd instead support an interface like -w,--week[=NUM]

thanks,
Pádraig.