all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Clément Pit--Claudel" <clement.pitclaudel@live.com>
To: Glenn Morris <rgm@gnu.org>, 25670@debbugs.gnu.org
Subject: bug#25670: Feature request: ignore --help in --script mode
Date: Fri, 10 Feb 2017 15:23:57 -0500	[thread overview]
Message-ID: <9a2862f6-941c-ab22-4a80-d3b63525ca99@live.com> (raw)
In-Reply-To: <p1sv6osme.fsf@fencepost.gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 636 bytes --]

On 2017-02-10 12:36, Glenn Morris wrote:
> Clément Pit--Claudel wrote:
> 
>> $ emacs -Q --batch --eval '(print argv)' -- --help
>> ("--" "--help")
> 
> If you can train your users to insert -- before --help, you could get
> them to use any other flag for help. And if you are inserting the -- for
> them, you are already using a wrapper.

I'm using this as my header:

#!/bin/sh
":"; exec emacs -Q --script "$0" -- "$@" # -*- mode: emacs-lisp; lexical-binding: t; -*-

I don't understand the wrapper point: I want to do the argument parsing in ELisp, not in bash.  Did I misunderstand your suggestion?

Clément.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2017-02-10 20:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-09 21:00 bug#25670: Feature request: ignore --help in --script mode Clément Pit--Claudel
2017-02-10  4:40 ` Glenn Morris
2017-02-10 15:05 ` Ted Zlatanov
2017-02-10 16:52   ` Clément Pit--Claudel
2017-02-10 17:36     ` Glenn Morris
2017-02-10 20:23       ` Clément Pit--Claudel [this message]
2017-02-18  9:59 ` Eli Zaretskii
2017-02-18 13:46   ` Clément Pit--Claudel
2017-02-18 14:18     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9a2862f6-941c-ab22-4a80-d3b63525ca99@live.com \
    --to=clement.pitclaudel@live.com \
    --cc=25670@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.