[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Clément Pit--Claudel
Subject: bug#25670: Feature request: ignore --help in --script mode
Date: Fri, 10 Feb 2017 15:23:57 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

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:

":"; 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?


Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]