From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: util-linux-owner@vger.kernel.org Received: from mail2.vodafone.ie ([213.233.128.44]:55995 "EHLO mail2.vodafone.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494Ab3JGRGq (ORCPT ); Mon, 7 Oct 2013 13:06:46 -0400 Message-ID: <5252EA23.4080508@draigBrady.com> Date: Mon, 07 Oct 2013 18:06:43 +0100 From: =?ISO-8859-1?Q?P=E1draig_Brady?= MIME-Version: 1.0 To: Tommi Kyntola CC: Sami Kerola , util-linux-ng@vger.kernel.org Subject: Re: [RFC/PATCH] week numbers for cal References: <52522615.4010304@draigBrady.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Sender: util-linux-owner@vger.kernel.org List-ID: 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.