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: Long command line arguments using SRFI 37 Date: Fri, 4 Jan 2019 19:55:04 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1546628016 9412 195.159.176.226 (4 Jan 2019 18:53:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 4 Jan 2019 18:53:36 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 04 19:53:32 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from listsout.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfUb6-0002MW-JJ for guile-user@m.gmane.org; Fri, 04 Jan 2019 19:53:32 +0100 Original-Received: from localhost ([127.0.0.1]:38198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfUdD-0007Hy-7Z for guile-user@m.gmane.org; Fri, 04 Jan 2019 13:55:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfUci-0007HB-C8 for guile-user@gnu.org; Fri, 04 Jan 2019 13:55:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfUce-0006ef-7u for guile-user@gnu.org; Fri, 04 Jan 2019 13:55:12 -0500 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:32984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfUce-0006eB-0z for guile-user@gnu.org; Fri, 04 Jan 2019 13:55:08 -0500 Original-Received: by mail-ed1-x52c.google.com with SMTP id p6so32698883eds.0 for ; Fri, 04 Jan 2019 10:55:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=mAs69KSsPAAFlEQS2NVM2Hi3y98dlny7+VfYroQ4am8=; b=j29IftPyys3gOhlwrVXxLzgHgNiatUjmXyaHRa1ulrezYHqHYZbKp+m7cjnldJEp/1 GF61PoUvpXalCdg3SN1ZjSpwxL7qe9YFQAfBGaZOQoxhN3tTMuWhEGZ9x4/P8ez1eJ58 56vxYgYWCQoKaRM3WfqlJcTNaPAXpVTZlTWTNALeenNviNZFxONMPHxzQjH0AZ4rXOIj vt8VcazlfmjjysYfPiVvaYlBSra5He56fvHAt16+XE2CHD1qBqGKI12RTJy0f6U4xOA0 hi711NXKahFmaDeV00YYTYLhSPWiFDfvTKjZ9oCxgpSZyLITk2euia1Zwx3EzxlQJLgM BO0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=mAs69KSsPAAFlEQS2NVM2Hi3y98dlny7+VfYroQ4am8=; b=OKz7UmkKIoL3dBw5+YKQEC5jB7zi34ZOqvD9/oz8kFbMmYnpncrWBzlhERLgaV6fs5 UjmO6i3oBFJaAmQ7838BaJhxMuA1+izV0D69fDL3v+GOnIT9JlWpWaXR70sxZkWEJTah a5zWCh/xBnsP0XW5gdWUf2jU+fP8ma/ClxlYqu+sL4T/FlN8iOZKqPobCGRbPWYNdY6m izs4gNZQvYmADYKDMGzglvaSSsNIDXlRuTJmbO4t1zwB8SRGKBZzISEb4UsjJ9Hj8cUa 0uzNvfRnCV2W/b50mxw+Jrz318ruGXThCvzgyg+lP7ZxJAmd7Hu2ZYP0ISWyCBkkoKrx Qc/A== X-Gm-Message-State: AA+aEWa9HKJ15WGeixAwnD16rt0tAiagJ39XybyXI0Yz5C4gFeNE/g9M 2xSecOq8nV4U7dC48stxJQJDgJ7T X-Google-Smtp-Source: AFSGD/XnBeGbYzBovcK0s8EVv+puHkl8ufMSpiyeeuyUKJdCC//j/6N8l9FF0fMPzg1F3+gLeCMGQg== X-Received: by 2002:aa7:c0d0:: with SMTP id j16mr46173092edp.173.1546628106705; Fri, 04 Jan 2019 10:55:06 -0800 (PST) Original-Received: from [10.9.0.13] ([185.65.134.162]) by smtp.googlemail.com with ESMTPSA id h47sm25829232eda.8.2019.01.04.10.55.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 10:55:06 -0800 (PST) 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::52c 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:15192 Archived-At: 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