From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 09:59:04 2020 Received: (at 40549) by debbugs.gnu.org; 12 May 2020 13:59:04 +0000 Received: from localhost ([127.0.0.1]:56279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYVR2-0002s3-ES for submit@debbugs.gnu.org; Tue, 12 May 2020 09:59:04 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:41360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYVR1-0002rW-2R for 40549@debbugs.gnu.org; Tue, 12 May 2020 09:59:03 -0400 Received: by mail-qk1-f194.google.com with SMTP id n14so13607736qke.8 for <40549@debbugs.gnu.org>; Tue, 12 May 2020 06:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lmEn2u/A9MguYT7fxcXYp5LnhNCo2Vy3DU97M+dWY/E=; b=VRpnugIerY25U1rqYSSVY9L6dVg3JXH+NpYSE+X5hHPjsg/aA/7zKIzyHAWTzKAumQ a0MFfHYGWSXd952+5U5o+67euuiMsqGk1PXbpaq+3vtZl5poFNIxGJxLxRLODryjxOjT yShDquAw6hPq3WjdT6UQvEL/t3p4IpD0aUUSlt/90rkRyqFg+h5bWcWuZpwc7r30s/IO yoovYhzpT0ESZqeb5vzCgw92DWUv4CQJfQAW8vTmwJ+gsblCWoW2FpJ9lQHSWsRH7WgI IyNCavDDmluHYfVipH5eduKcbrpZpjP2b2yJVEfdDEv1zjiGR/C5cCDRURHJXMjsm0Qx duAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=lmEn2u/A9MguYT7fxcXYp5LnhNCo2Vy3DU97M+dWY/E=; b=g67+aJnlwaKLCpxCZBysruAlLBFQak+cdC5cwxNJe7tzzd2XJxmMuHjKWVrrEgek/d 59ie+nMIk5CnIQYmqybn/QfjIUYdoV+3W5EXPOIa+Dbvjyipor6ZZztNSAyNbeMgVw46 4EwOXn5yB2U5+4Rd66adQJwTKjqPRbv0kVjw+R39ZdANG3yZXP4kWezbOTfmWpbXbqzc 6H2tRxIYAmaWzlOqV7jdAY/jJwGUtspD3LY6lVgOsYJ3KV28OlvkIcHRsUk6lL94VllB 2TrdJfhsnWtW3ku5wK+A+IcRvTnaCap94WBP+t8nhd+K4qQoueFE9ilqNF2qPO8C4Twh 9dNA== X-Gm-Message-State: AGi0PuZRN4bUwECoKKwy7vxM5pBFXBHAvo3O+bpCLXRvR/QYvJbey5Qc y6hpCPgajlQGPbUavGfY3F5AD7n+wDLV1oEpjCY= X-Google-Smtp-Source: APiQypLcumgOsMt6afJsUoSBlYuXFvRAmmu970g2R9jpJ7RT7/G9v0nrQGfKr8wAQfMYzpSfLaKz6PPYwjpT1GFZbBc= X-Received: by 2002:a37:4e05:: with SMTP id c5mr20963424qkb.232.1589291937401; Tue, 12 May 2020 06:58:57 -0700 (PDT) MIME-Version: 1.0 References: <6171889.DvuYhMxLoT@cherry> <3827671.e9J7NaK4W3@peach> <87mu6dcz8v.fsf@gnu.org> In-Reply-To: <87mu6dcz8v.fsf@gnu.org> From: zimoun Date: Tue, 12 May 2020 15:58:45 +0200 Message-ID: Subject: Re: bug#40549: More usability issues: To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40549 Cc: 40549@debbugs.gnu.org, Tom X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, 12 May 2020 at 10:51, Ludovic Court=C3=A8s wrote: > Nothing new here, and everything is properly documented. Using optional argument with short-option names is unusual, AFAIK. And for sure, there is an ambiguity; as we are seeing here. :-) However, the only mention of that is in the commentaries of srfi-37. --8<---------------cut here---------------start------------->8--- ;;; `required-arg?' and `optional-arg?' are mutually exclusive ;;; booleans and indicate whether an argument must be or may be ;;; provided. Besides the obvious, this affects semantics of ;;; short-options, as short-options with a required or optional ;;; argument cannot be followed by other short options in the same ;;; program-arguments string, as they will be interpreted collectively ;;; as the option's argument. --8<---------------cut here---------------end--------------->8--- http://git.savannah.gnu.org/cgit/guile.git/tree/module/srfi/srfi-37.scm#n51 Well, using short-option with optional-argument is not recommended by POSIX, neither GNU (if I understand well) https://pubs.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap12.html#ta= g_12_02 https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html Therefore, it deserves to document it, IMHO.