From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Catonano Newsgroups: gmane.lisp.guile.user Subject: Re: Long command line arguments using SRFI 37 Date: Sat, 5 Jan 2019 14:22:53 +0100 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1546694535 1221 195.159.176.226 (5 Jan 2019 13:22:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2019 13:22:15 +0000 (UTC) Cc: Guile User To: Zelphir Kaltstahl Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 05 14:22:11 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from listsout.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfltx-0000AW-7A for guile-user@m.gmane.org; Sat, 05 Jan 2019 14:22:09 +0100 Original-Received: from localhost ([127.0.0.1]:35357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gflw3-0002Zm-I6 for guile-user@m.gmane.org; Sat, 05 Jan 2019 08:24:19 -0500 Original-Received: from eggsout.gnu.org ([209.51.188.92]:46920 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfluv-0001wF-TU for guile-user@gnu.org; Sat, 05 Jan 2019 08:23:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfluu-00070v-H0 for guile-user@gnu.org; Sat, 05 Jan 2019 08:23:09 -0500 Original-Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]:39585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfluu-00070Z-Bm for guile-user@gnu.org; Sat, 05 Jan 2019 08:23:08 -0500 Original-Received: by mail-yb1-xb2c.google.com with SMTP id n187so12172041yba.6 for ; Sat, 05 Jan 2019 05:23:08 -0800 (PST) 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; bh=FuW9nP1l0gvuSHJkRNpdUCHCdKWGMUnihPQ174r/LaQ=; b=l1biV5V6Rl0dAHFAM5F63VYjDFwKL2ll0hnorbiYBsY0h4BJ9dkhVk9oq4VQoasOYj GmyApDMetSzm24UQMo1XX5wtPiLxZ/iwKJ94MczFYFm3HWY1S34Dta6I7MSK3afW6Aaa xNHJH5FUgQDDL9oDnOHBX+GjTeAwU11hWBfVBTV9/jDFHsyaIMytiWgrk9L3QnAzIDEC YhdnIDjdyhBXkYOTeFKxL/I9KCtO5mNekZB0RlB/AcjkImPWsgECQHmpRYUBpCAQiJQu kcq7sAow/duBIUIWqy36sFgtrtLxkzHiq8KS7AW1ILpO25/GVO1OnZUMpE11FEFRV4Tc F0+Q== 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; bh=FuW9nP1l0gvuSHJkRNpdUCHCdKWGMUnihPQ174r/LaQ=; b=HLFaABXF46wufDJoi3OPWmlxocxvLW6jP5CRt08L5s/4+NWgj0Pip6Z4Zbm9V+Xuqs C2rwbSR08eG+gXzTLhbo6c6HJw0FO9nUstpoZipXqy1uVu+LiLF56Ifyoa5XZnbes6sr 4Eiq19J5GGHzHhD4rVea1ASQbo8f4W5ac4ZVyAg9sv1U0vpEVHvdBpht0Bw894Xk98yy OgzcPoFVFkynLPBAnW9CwBjt+13Erhn8J+o+IvDzlVFzMGCdioHdVC4ZgzIw7oXrXy9h lLwC93t1qKWHINXM6uAeDclk25rCE5JLBITqJbtHQzMVNMhP9+mb/EVsGGWllzUwQYZN kx7g== X-Gm-Message-State: AJcUukdLdmbt++lchutC5YD3W6J8qpQ39aZjhIc1UPp6gnkHtVbp0Z6H 45L4Z7Y34Tf3l9pssViv+Se7Mo5+gYzJMsHnTg== X-Google-Smtp-Source: ALg8bN6SEI5t22tw6GHEiud89HDDdOU62Nhk4Dharl1N/P8QAnz4rmqtHVPi0hXyTaKYyaKwzRogZ9ek4ODWmTVExSQ= X-Received: by 2002:a25:35c5:: with SMTP id c188mr23040959yba.337.1546694587272; Sat, 05 Jan 2019 05:23:07 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::b2c X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:15198 Archived-At: Il giorno ven 4 gen 2019 alle ore 19:55 Zelphir Kaltstahl < zelphirkaltstahl@gmail.com> ha scritto: > Hi Guile Users, > > I have a question regarding the usage of SRFI 37. Is it possible to have > long arguments, which one can use as follows: > > guile main.scm --argument value > > This is what I am used to with other command line programs. It seems to > me, when I use SRFI 37, I can only get it to allow the following style > of command line arguments: > > guile main.scm --argument=value > guile main.scm --argument="some value" > > It is not really a big issue, but I think it would still be great to > have a way of allowing the first style as well, as I just spend an hour > or so trying to figure out what was wrong with my program, until I took > a look at my example code (see link below) again and checked how it > behaved with style 1 and noticed it has the same error. > > I have the example code, where I am trying to use SRFI 37, on: > > > https://gitlab.com/zelphir-kaltstahl-projects/guile-scheme-tutorials-and-examples/blob/dev/command-line-arguments/using-srfi-37.scm > > Maybe I am missing something or doing something wrong? > > Regards, > > Zelphir > > Hi Zelphir, I can't help you with the processing of arguments with Guile, as I don't know the first thing about that I want to thank you for collecting that set of examples and tutorials I only skimmed through the macro section and it seems quite interesting Examples are very important and the Guile documentation sorely misses some examples Also, I also had the experience to struggle and waste lots of time with Guile for quite simple things, too For example, it too me some years to learn the usage of readline for a better REPL experience (this information is sinked deep in the manual) It also too me a long time to get the gist of the "eval buffer" command in Geiser You might be interested in this talk https://archive.fosdem.org/2017/schedule/event/legacy_docs/ There is another library of examples that Tantalum pointed me to, this one https://github.com/sph-mn/sph-lib/tree/master/modules/sph/server Together with yours, this material is becoming meaningful, if not substantive Maybe the Guile website could point to these collections, maybe they could be merged into one library only, we'll see For now I just wanted to acknowledge your effort Thanks