From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: tantalum Newsgroups: gmane.lisp.guile.user Subject: Re: Long command line arguments using SRFI 37 Date: Sun, 6 Jan 2019 12:07:00 +0000 Message-ID: <2b163d77-a543-1715-b3ce-ed0d523c1b7a@posteo.eu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1546776337 9670 195.159.176.226 (6 Jan 2019 12:05:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 Jan 2019 12:05:37 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 Cc: guile-user@gnu.org To: zelphirkaltstahl@gmail.com Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jan 06 13:05:33 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 1gg7BM-0002Mv-Ox for guile-user@m.gmane.org; Sun, 06 Jan 2019 13:05:32 +0100 Original-Received: from localhost ([127.0.0.1]:53577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gg7DT-0006qr-KJ for guile-user@m.gmane.org; Sun, 06 Jan 2019 07:07:43 -0500 Original-Received: from eggsout.gnu.org ([209.51.188.92]:34774 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gg7Cv-0006ns-Hn for guile-user@gnu.org; Sun, 06 Jan 2019 07:07:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gg7Cs-0006Lo-1E for guile-user@gnu.org; Sun, 06 Jan 2019 07:07:09 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:60865) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gg7Cr-0006GZ-JS for guile-user@gnu.org; Sun, 06 Jan 2019 07:07:05 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id A4CC42400FB for ; Sun, 6 Jan 2019 13:07:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1546776421; bh=q2MW+0mWOlngbb1S6NDw/3NK8qTGmctp597ZS6Tgv0s=; h=To:Subject:From:Cc:Date:From; b=fmTtAxJAZNj5CRmsvNLNYUVjLwKtmF9dqx+OyLmhGaX5reMLL3gNMECrqYbaWZewT Eu7mxS/mIzsV/JJD/pQ/CSOiAXDLipqTiF09bk96dMjULzwfAJuASDO0l4gwMUWxhi +gm1wF+ks7rLWeVopJmH8RZP4mWMk2MDoxYCXQodNMEaXBKRbEqTITvUz29UKCyk4L GeHctHPKq0xvfnA/2agQQnjF8vBx/QPyY9T6L5dWOZGTrfhlc3d+Oi0yAGD1qdc4h8 s+OSkL/KZTumZBYCr6xeVQNQHZcWnTLQ5IAsbwPzyFsd0d6JCDFMVB+S1IN6RUzggr f6rJMckWh0Amw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 43XchP0PRSz9rxB; Sun, 6 Jan 2019 13:07:00 +0100 (CET) Original-References: Content-Language: de-AT X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.66 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:15203 Archived-At: 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.