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: Ted Zlatanov <tzz@lifelogs.com>
Cc: 25670-done@debbugs.gnu.org
Subject: bug#25670: Feature request: ignore --help in --script mode
Date: Fri, 10 Feb 2017 11:52:50 -0500	[thread overview]
Message-ID: <6e731e53-dc69-f68e-aa52-82ba89c9c518@live.com> (raw)
In-Reply-To: <87bmuakrwv.fsf@flea>


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

On 2017-02-10 10:05, Ted Zlatanov wrote:
> On Thu, 9 Feb 2017 16:00:59 -0500 Clément Pit--Claudel <clement.pitclaudel@live.com> wrote: 
> 
> CP> More generally, could we guarantee that options that appear *after* "--script" aren't processed by Emacs itself (and instead left to the script)?  Or would that break things?
> 
> Typically I've seen "--" used to indicate the end of parseable options.
> Would it help?

Yes! And in fact it seems to work :) Neat.

$ emacs -Q --batch --eval '(print argv)' -- --help
("--" "--help")

I see now that it was mentioned in http://www.lunaryorn.com/posts/emacs-script-pitfalls.html.  Not sure how I missed it.

Thanks Ted!
Clément.


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

  reply	other threads:[~2017-02-10 16:52 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 [this message]
2017-02-10 17:36     ` Glenn Morris
2017-02-10 20:23       ` Clément Pit--Claudel
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=6e731e53-dc69-f68e-aa52-82ba89c9c518@live.com \
    --to=clement.pitclaudel@live.com \
    --cc=25670-done@debbugs.gnu.org \
    --cc=tzz@lifelogs.com \
    /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.