GNU bug report logs - #25670
Feature request: ignore --help in --script mode

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Thu, 9 Feb 2017 21:02:02 UTC

Severity: wishlist

Done: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
To: Glenn Morris <rgm <at> gnu.org>, 25670 <at> debbugs.gnu.org
Subject: bug#25670: Feature request: ignore --help in --script mode
Date: Fri, 10 Feb 2017 15:23:57 -0500
[Message part 1 (text/plain, inline)]
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.


[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 8 years and 97 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.