From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: Long command line arguments using SRFI 37 Date: Sun, 6 Jan 2019 23:57:54 +0100 Message-ID: References: <2b163d77-a543-1715-b3ce-ed0d523c1b7a@posteo.eu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1546815385 25035 195.159.176.226 (6 Jan 2019 22:56:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 Jan 2019 22:56:25 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cc: guile-user@gnu.org To: tantalum Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jan 06 23:56:21 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggHLA-0006RA-K8 for guile-user@m.gmane.org; Sun, 06 Jan 2019 23:56:20 +0100 Original-Received: from localhost ([127.0.0.1]:52252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggHNH-000233-DQ for guile-user@m.gmane.org; Sun, 06 Jan 2019 17:58:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggHMl-0001zP-6n for guile-user@gnu.org; Sun, 06 Jan 2019 17:57:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggHMj-00017H-KS for guile-user@gnu.org; Sun, 06 Jan 2019 17:57:59 -0500 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:45551) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ggHMj-00016m-Ei for guile-user@gnu.org; Sun, 06 Jan 2019 17:57:57 -0500 Original-Received: by mail-ed1-x534.google.com with SMTP id d39so36283617edb.12 for ; Sun, 06 Jan 2019 14:57:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=6tHpHq1LYR0eRYe/LG99r/h59sQwjfMb5hGLQFX8cJ8=; b=DQmfGAiq341bfJVELCHOt5uFUr+LvyAG4b91zuq7wMaqakhV8mstFA7AC1/Z1GBCPQ efGImqGRftS52yZSHVMWD4DuRvMO1OLn72aqbmuWrvghckLqrpZEqdSCz8nVDqcHw+nU nPPacZz6vbmXyM8kRhbtLDsUuz8bKWOKNTLgDWSWbUdQEjS6C897DwdOKqT9I2LoA22Y rIyHDAyfdfvdR6kH2sOxpLgaWRjWV2bXsIwAufxy4z9lhi/ot0ZSdkwdscBa15eSk/0A +W9oY5ByqVW4ndv7kqNxJgY74TUavTFrCKMdMfxbMnVF+IuT9d5LtaDLZKAsYW7+vADh QSbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=6tHpHq1LYR0eRYe/LG99r/h59sQwjfMb5hGLQFX8cJ8=; b=UO+E3KNeCNcwJsDlpMPWuiW49+zvxq3/56CrtRZEcqijqur1OTcMX4cbGhuqEIh+y1 m/9bImoMkevHa9EZIrbmU26prikhzrfOtwNVW2Arlm3aBrOeHhPzOIN+53pIf4gH9gFS KDXsqEoRo7hcvMwfRjBaVtuJZlWgMewd6FFowfNX6malqPxOJr02+yAOjmOHJAm4fsyv hFOUUPm46Gdiyi8ipHaSihe3WF0LjkfTeuxOTwx/jB1KrZzddPRwcf2j2m22o0TRQfvi gd5YN5/BCOoBCa9X0PEExzvaEGeqHOoNcXJpCxZQjkxxZDI098Hr0oE7vUEsdUTk1y3m Xluw== X-Gm-Message-State: AA+aEWbfeKYRtDJ/qO5ttQKstqfc2uEPEzxn1hcqeCeiyHwcCCwmpXIR FvRrmH7kiV7V/BPE0tBKhvX/06XL X-Google-Smtp-Source: AFSGD/VRuKa66V0FeH599Gw5h9aIozeX8pPbXr/nu3wSkX6KTi6+lAIdxSECzxP6Xdsrh/mKQkAB2g== X-Received: by 2002:a50:a125:: with SMTP id 34mr53946577edj.175.1546815475480; Sun, 06 Jan 2019 14:57:55 -0800 (PST) Original-Received: from ?IPv6:2a02:8109:8b80:3950:98e:2458:ddea:c0c4? ([2a02:8109:8b80:3950:98e:2458:ddea:c0c4]) by smtp.googlemail.com with ESMTPSA id f6sm34883464ede.53.2019.01.06.14.57.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jan 2019 14:57:55 -0800 (PST) In-Reply-To: <2b163d77-a543-1715-b3ce-ed0d523c1b7a@posteo.eu> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::534 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15206 Archived-At: On 1/6/19 1:07 PM, tantalum wrote: > i dont know if it is possible, but the source code of srfi-37 is > available, on my machine it is at > /usr/share/guile/2.2/srfi/srfi-37.scm. i didnt see an option for the > "--name value" case at first glance. > > apparently the --name=value syntax is to allow for long options with > optional values. otherwise "--name value" and "value --name" might be > ambiguous. > https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html > > from the linked code: >     ;; seed - What is the seed??? > > seed is the initial value for what is "loads" in the code. it is the > initial value for what eventually becomes the result of the call to > args-fold. like the init parameter of fold. I was wondering about that. So it's just that a fold needs an initial value to work with. The names seed and loads are a bit difficult to make sense of immediately, but I understand now. Thanks! Zelphir