After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774595 - "--help" should mention "--"
"--help" should mention "--"
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
git master
Other Linux
: Normal minor
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-11-16 21:18 UTC by Egmont Koblinger
Modified: 2016-11-16 23:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Egmont Koblinger 2016-11-16 21:18:10 UTC
Followup of ad4edbd:

"gnome-terminal --help-all" does not mention the "--" option at all.

(And by the way it does not mention the now deprecated "-x" either.)
Comment 1 Christian Persch 2016-11-16 21:34:12 UTC
There is no '--' option as such; '-- ' is the GNU standard way to denote the *end* of the options.
Comment 2 Christian Persch 2016-11-16 21:40:52 UTC
Is commit f87875b3bcae2b081944de8d8fd3a9bb2ad2d85d good enough?
Comment 3 Egmont Koblinger 2016-11-16 22:02:40 UTC
Perfect for me, thanks! :)
Comment 4 Egmont Koblinger 2016-11-16 23:37:44 UTC
(In reply to Christian Persch from comment #1)
> There is no '--' option as such; '-- ' is the GNU standard way to denote the
> *end* of the options.

I know it, I just used poor wording...

However, it's not quite the standard way in gnome-terminal. The standard [I guess by GNU you meant getopt_long() and friends] is that '--' only prevents subsequent arguments from being interpreted as options, instead they are all taken as "normal" parameters. Which only makes a difference if any of them happens to begin with a '-'.

If gnome-terminal followed the same pattern, these two would be equivalent:

  gnome-terminal zsh
  gnome-terminal -- zsh

However, in the first one the "zsh" parameter is ignored.

The current behavior is totally fine for me (except that you can't open multiple windows/tabs and give a separate command to each), and is nicely documented now at the top of "--help". Just let's not say it's the standard GNU way ;)