GNOME Bugzilla – Bug 774595
"--help" should mention "--"
Last modified: 2016-11-16 23:37:44 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.)
There is no '--' option as such; '-- ' is the GNU standard way to denote the *end* of the options.
Is commit f87875b3bcae2b081944de8d8fd3a9bb2ad2d85d good enough?
Perfect for me, thanks! :)
(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 ;)